NAME

Egg::Appli - General base class.

SYNOPSIS

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)= @_;
  ...
  .....
}

DESCRIPTION

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/],
  },

METHODS

These methods are basically called through Egg::Plugin::Appli.

my $app= $e->app->get('BBS');

new

Egg::Plugin::Appli calls implicitly.

$app->setup, $app->prepare, $e->action, $e->finalize

It is called from Egg::Plugin::Appli according to the same timing for the plugin of Egg as the call.

$app->param([KEY], [VALUE]);

The parameter is referred to and it defines it. It is a in a word general param method.

$app->params

All parameter is returned by the HASH reference.

SEE ALSO

Egg::Plugin::Appli, Egg::Config, Egg::Release,

AUTHOR

Masatoshi Mizuno, <mizuno@bomcity.com>

COPYRIGHT AND LICENSE

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.