class::mixinfactory::factory(3pm) [debian man page]
MixinFactory::Factory(3pm) User Contributed Perl Documentation MixinFactory::Factory(3pm)NAME
Class::MixinFactory::Factory - Class Factory with Selection of Mixins
SYNOPSIS
use Class::MixinFactory::Factory;
my $factory = Class::MixinFactory::Factory->new();
$factory->base_class( "MyClass");
$factory->mixin_prefix( "MyMixins" );
$factory->mixed_prefix( "MyClasses" );
my $class = $factory->class( @mixins );
DESCRIPTION
A mixin factory generates new classes at run-time which inherit from each of several classes.
PUBLIC METHODS
new()
$factory_class->new() : $factory
$factory_class->new( %attributes ) : $factory
Create a new factory object.
May be passed a hash of attributes, with the key matching one of the supported accessor methods named below and the value containing
the value to assign.
base_class()
$factory->base_class() : $package_name
$factory->base_class( $package_name )
Required. Get or set the base class to be inherited from by all mixed classes.
mixin_prefix()
$factory->mixin_prefix() : $package_name
$factory->mixin_prefix( $package_name )
Optional. Get or set a prefix to be placed before all mixin class names that don't contain a double-colon. Defaults to the name of the
base class.
mixed_prefix()
$factory->mixed_prefix() : $package_name
$factory->mixed_prefix( $package_name )
Optional. Get or set a prefix to be placed before all generated class names. Defaults to the name of the base class or the factory
class followed by "::AUTO"
class()
$factory->class( @mixins ) : $package_name
Find or generate a class combining the requested mixin classes.
SEE ALSO
For a facade interface that facilitates access to this functionality, see Class::MixinFactory.
For distribution, installation, support, copyright and license information, see Class::MixinFactory::ReadMe.
perl v5.10.1 2009-12-10 MixinFactory::Factory(3pm)
Check Out this Related Man Page
Class::Factory::Util(3) User Contributed Perl Documentation Class::Factory::Util(3)NAME
Class::Factory::Util - Provide utility methods for factory classes
SYNOPSIS
package My::Class;
use Class::Factory::Util;
My::Class->subclasses;
DESCRIPTION
This module exports a method that is useful for factory classes.
USAGE
When this module is loaded, it creates a method in its caller named "subclasses()". This method returns a list of the available subclasses
for the package. It does this by looking in @INC as well as the directory containing the caller, and finding any modules in the immediate
subdirectories of the calling module.
So if you have the modules "Foo::Base", "Foo::Base::Bar", and "Foo::Base::Baz", then the return value of "Foo::Base->subclasses()" would be
"Bar" and "Baz".
SUPPORT
Please submit bugs to the CPAN RT system at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=class-factory-util or via email at
bug-class-factory-util@rt.cpan.org.
AUTHOR
Dave Rolsky, <autarch@urth.org>.
Removed from Alzabo and packaged by Terrence Brannon, <tbone@cpan.org>.
COPYRIGHT
Copyright (c) 2003-2007 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.10.0 2008-05-12 Class::Factory::Util(3)
Yep,
'Nuther harried day at the helicopter factory...
My current query:
Can anyone guide me to the Shockwave plugin, if
one exists, that will run on my Netscape 1.72?
System is:
RS 6000, 44P Model 170
BASH Shell
AIX 4.3
As ever,
Your help is most appreciated...
tatum (4 Replies)
First of all, this review (my observations) of a Koh Tao dive factory, or my experience there, is only based on one dive center. It certainly is not written to imply other, any or all dive centers on Koh Tao are like this. I cannot be the judge of that. Unfortunately, this experience has... (0 Replies)
Hello there, I am new to using classes, and have been having so many problems. I don't want to go to my teacher if I don't have to, because it is always my luck that it is something easy that I just overlooked somehow. I have been working on this for 3 days and I can't get it to read from a file.
... (1 Reply)
I want to create an abstract factory template which will allow me to pass in an "ID" for a subclass and return the singleton instance of that class stored in the factory. It'd be easy to adapt for "multi-ton", but for its present use this isn't necessary.
The requirements are:
- I don't want... (2 Replies)
Ive been trying to move to Perl. It has been a struggle.
My question is, is there a good resource that explains nesting statements.
As an example.
To change
primary
Factory CTS 1.9.0(46) P1
*Slot 1 CTS 1.10.2(42) P1
To
primary *Slot 1 CTS 1.10.2(42) P1
... (5 Replies)