NAME
Pipeline::Store::ISA - inheritance-based store for pipelines
SYNOPSIS
use Pipeline::Store::ISA;
my $store = Pipeline::Store::ISA->new();
$store->set( $object );
my $object = $store->get( $class );
DESCRIPTION
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
- 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
Pipeline
, Pipeline::Store
, Pipeline::Store::Simple
AUTHOR
James A. Duncan <jduncan@fotango.com>
COPYRIGHT
Copyright 2002 Fotango Ltd. All Rights Reserved.
This software is distributed under the same terms as Perl itself.