Egg::Appli - General base class.
This is a base class that the module used should chiefly use from Egg::Plugin::Appli.
package Egg::Appli::Booo; use strict; use base qw/Egg::Appli/; __PACKAGE__->mk_accesors( qw/parameter/ ); sub setup { my($class, $e)= @_; ... ..... } sub new { my($class, $e)= @_; my $app= $class->SUPER::new($e); $app->{parameter}= 'parameter'; $app; } sub hogehoge { my($app)= @_; ... ..... } sub finalize { my($app)= @_; ... ..... }
To tell the truth, it is used from Egg::Config.
The user thinks that he or she will use it through Egg::Plugin::Appli.
package [PROJECT]; use strict; use Egg qw/-Debug Appli/;
And, to the configuration.
plugin_appli=> { applications=> [qw/bbs wiki blog/], },
These methods are basically called through Egg::Plugin::Appli.
my $app= $e->app->get('BBS');
Egg::Plugin::Appli calls implicitly.
It is called from Egg::Plugin::Appli according to the same timing for the plugin of Egg as the call.
The parameter is referred to and it defines it. It is a in a word general param method.
All parameter is returned by the HASH reference.
Egg::Plugin::Appli, Egg::Config, Egg::Release,
Masatoshi Mizuno, <mizuno@bomcity.com>
Copyright (C) 2006 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.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.