Pipeline::Store::ISA - inheritance-based store for pipelines


Pipeline documentation  | view source Contained in the Pipeline distribution.

Index


NAME

Top

Pipeline::Store::ISA - inheritance-based store for pipelines

SYNOPSIS

Top

  use Pipeline::Store::ISA;

  my $store = Pipeline::Store::ISA->new();
  $store->set( $object );
  my $object = $store->get( $class );

DESCRIPTION

Top

Pipeline::Store::ISA is a slightly more complex implementation of a Pipeline store than Pipeline::Store::Simple. It stores things as in a hashref indexed by classname, and also their inheritance tree. You can add an object to a store by calling the set method with an object, and you can get an object by calling the get method with the classname or parent classname of the object you wish to retrieve.

Pipeline::Store::ISA inherits from the Pipeline::Store class and includes its methods also.

METHODS

Top

set( OBJECT )

The set method stores an object specified by OBJECT in itself. Replaces existing objects of the same type.

get( SCALAR )

The get method attempts to return an object of the class specified by SCALAR. If an object of that class does not exist in the store it returns undef instead. In the case that you request a super class of multiple objects an array reference will be returned containing all the objects that are blessed into child classes of SCALAR.

SEE ALSO

Top

Pipeline, Pipeline::Store, Pipeline::Store::Simple

AUTHOR

Top

James A. Duncan <jduncan@fotango.com>

COPYRIGHT

Top


Pipeline documentation  | view source Contained in the Pipeline distribution.