NAME
Egg::Manager - Model manager and view manager's base classes.
DESCRIPTION
It is a base class succeeded to by the handler of Egg::Manager::Model and Egg::Manager::View.
METHODS
initialize
When starting, it initializes it.
setup_manager
Initial is set up.
The component specified by the configuration is concretely read, and it registers in @ISA of the manager handler.
new
Constructor.
default ([LABEL_STRING])
It defaults to the component of LABEL_STRING and it sets it.
The label of the component of the default decided that LABEL_STRING is omitted by an initial setup is returned.
reset ([PROJECT_OBJYECT])
The object is initialized. PROJECT_OBJYECT is indispensable.
context ([LABEL_STRING])
The object of the component corresponding to LABEL_STRING is returned.
When LABEL_STRING is omitted, default is used.
reset_context ([LABEL_STRING])
The constructor of the component is made to move again when the context method is called next annulling the object of the component corresponding to LABEL_STRING maintained with this object.
add_register ([LOAD_BOOL], [LABEL_STRING], [PACKAGE_STRING], [CONFIG])
The component is registered and to call it by the context method, it sets it up. However, @ISA is not operated.
Require is done at the same time as registering the module of PACKAGE_STRING when an effective value to LOAD_BOOL is passed.
LABEL_STRING gives the name to call it by the context method.
PACKAGE_STRING gives the package name of the registered component. The value of LABEL_STRING is misappropriated when omitting it.
CONFIG can be omitted. It is preserved in the registration data when giving it. Moreover, if "PACKAGE_STRING::handler" exists and the class has succeeded to Egg::Base, CONFIG is defined in the config method of the class.
The main of this method is add_register method of Egg::Component.
Alias = register
SEE ALSO
Egg::Release, Egg::Component, Egg::Base,
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.