Starch::Factory - Role applicator and class creator.
This class consumes the Starch::Plugin::Bundle role and is used by Starch to apply specified plugins to manager, state, and store classes.
Normally there is no need to interact with this class directly.
This is the "plugins" in Starch::Plugin::Bundle attribute, but altered to be an argument.
The base class of the Starch manager object. Default to Starch::Manager.
Starch::Manager
The base class of Starch state objects. Default to Starch::State.
Starch::State
The anonymous class which extends "base_manager_class" and has "manager_roles" applied to it.
The anonymous class which extends "base_state_class" and has "state_roles" applied to it.
my $class = $factory->base_store_class( '::Memory' ); # Starch::Store::Memory my $class = $factory->base_store_class( 'Starch::Store::Memory' ); # Starch::Store::Memory
Given an absolute or relative store class name this will return the resolved class name.
my $class = $factory->store_class( '::Memory' );
Given an absolute or relative store class name this will return an anonymous class which extends the store class and has "store_roles" applied to it.
my $store = $factory->new_store( class=>'::Memory', %args );
Creates and returns a new "store_class" object with the factory argument set.
Note that since the "expires" in Starch::Store argument is required you must specify it.
See "AUTHOR" in Starch, "CONTRIBUTORS" in Starch, and "LICENSE" in Starch.
To install Starch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Starch
CPAN shell
perl -MCPAN -e shell install Starch
For more information on module installation, please visit the detailed CPAN module installation guide.