NAME
Class::Scaffold::Base - large-scale OOP application support
SYNOPSIS
Class::Scaffold::Base->new;
DESCRIPTION
METHODS
new
-
my $obj = Class::Scaffold::Base->new; my $obj = Class::Scaffold::Base->new(%args);
Creates and returns a new object. The constructor will accept as arguments a list of pairs, from component name to initial value. For each pair, the named component is initialized by calling the method of the same name with the given value. If called with a single hash reference, it is dereferenced and its key/value pairs are set as described before.
- FIRST_CONSTRUCTOR_ARGS
-
This method is used by the constructor to order key-value pairs that are passed to the newly created object's accessors - see Class::Accessor::Constructor. This class just defines it as an empty list; subclasses should override it as necessary. The method exists in this class so even if subclasses don't override it, there's something for the constructor mechanism to work with.
MUNGE_CONSTRUCTOR_ARGS
-
This method is used by the constructor to munge the constructor arguments - see Class::Accessor::Constructor. This class' method just returns the arguments as is; subclasses should override it as necessary. The method exists in this class so even if subclasses don't override it, there's something for the constructor mechanism to work with.
add_autoloaded_package
-
This class method takes a single prefix and adds it to the list - set, really - of packages whose methods should be autoloaded. The Class::Scaffold framework will typically be used by an application whose classes are stored in and underneath a package namespace. To avoid having to load all classes explicitly, you can pass the namespace to this method. This class defines a UNIVERSAL::AUTOLOAD that respects the set of classes it should autoload methods for.
init
-
This method is called at the end of the constructor - see Class::Accessor::Constructor. This class' method does nothing; subclasses should override it and wrap it with
SUPER::
as necessary. The method exists in this class so even if subclasses don't override it, there's something for the constructor mechanism to work with. log
-
This method acts as a shortcut to Class::Scaffold::Log. Instead of writing
use Class::Scaffold::Log; Class::Scaffold::Log->instance->debug('foo');
you can simply write
$self->log->debug('foo');
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org.
INSTALLATION
See perlmodinstall for information and options on installing Perl modules.
AVAILABILITY
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
AUTHORS
Florian Helmberger <fh@univie.ac.at>
Achim Adam <ac@univie.ac.at>
Mark Hofstetter <mh@univie.ac.at>
Heinz Ekker <ek@univie.ac.at>
Marcel Grünauer, <marcel@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2004-2009 by the authors.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.