The ISA param is provided as either a single value, or a reference
to an ARRAY containing is list of classes.
Normally this is just a straight list of classes. However, if the value for ISA is set to _OBJECT_ the object will identify itself as whatever is contained in it when the ->isa and ->can method are called on it.
Normally, you need to create your Class::Adapter objects separately:
If you provide a class name as the NEW param, the Decorator will do this for you, passing on any constructor arguments.
By default, a Class::Adapter does not pass on any methods, with the
methods to be passed on specified explicitly with the METHODS
By default the AUTOLOAD will pass through any and all calls, including calls to private methods.
If the AUTOLOAD is specifically set to PUBLIC, the AUTOLOAD setting will ONLY apply to public methods, and any private methods will not be passed through.
|METHODS||The METHODS param is provided as a reference to an array of all the methods that are to be passed through to the parent object as is.|
# If you provide the following
# foo => bar
# It the following are equivalent
This capability is provided primarily because in Perl one of the main situations in which you hit the limits of Perls inheritance model is when your class needs to inherit from multiple different classes that containing clashing methods.
# If your class is like this
use base This, That;
If both This->method exists and That->method exists, and both mean different things, then Foo->method becomes ambiguous.
Yes, Class::Adapter::Builder has public methods and later on you will be able to access them directly, but for now they are remaining undocumented, so that I can shuffle things around for another few versions.
Just stick to the pragma interface for now.
Bugs should be reported via the CPAN bug tracker at
For other issues, contact the author.
Adam Kennedy <email@example.com>
Copyright 2005 - 2011 Adam Kennedy.
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.20.3||CLASS::ADAPTER::BUILDER (3)||2011-03-24|