Devel::ebug::Wx::Service::Base - base class for services


Devel-ebug-Wx documentation Contained in the Devel-ebug-Wx distribution.

Index


Code Index:

NAME

Top

Devel::ebug::Wx::Service::Base - base class for services

SYNOPSIS

Top

  use base qw(Devel::ebug::Wx::Service::Base);

  # it's a subclass of Class::Accessor::Fast
  __PACKAGE__->mk_accessors( qw(foo moo) );

  # override one or more of the stub methods
  sub initialize         { my( $self, $manager ) = @_; # ... }
  sub load_configuration { my( $self ) = @_; # ... }
  sub save_configuration { my( $self ) = @_; # ... }
  sub finalize           { my( $self ) = @_; # ... }

DESCRIPTION

Top

Useful superclass for all services.

SEE ALSO

Top

Devel::ebug::Wx::ServiceManager


Devel-ebug-Wx documentation Contained in the Devel-ebug-Wx distribution.
package Devel::ebug::Wx::Service::Base;

use strict;
use base qw(Class::Accessor::Fast);

__PACKAGE__->mk_accessors( qw(initialized finalized) );

# empty base implementations
sub initialize         { my( $self, $manager ) = @_; }
sub load_configuration { my( $self ) = @_; }
sub save_configuration { my( $self ) = @_; }
sub finalize           { my( $self ) = @_; }

1;