App-Modular

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

#!/usr/bin/perl -w
#----------------------------------------------------------------------------
#   Modularizer - perl program modularization framewok
#   Modularizer.pm: module management class
#
#   Copyright (c) 2003-2008 Baltasar Cevc
#
#   Thanx to http://former03.de for paying me for the future 
#   development ;-)
#
#   This code is released under the L<perlartistic> Perl Artistic
#   License, which can should be accessible via the C<perldoc
#   perlartistic> command and the file COPYING provided with this

README  view on Meta::CPAN

App::Modular is a framework to write modular applications in Perl
######################################################################
## File: $Id: README,v 0.1.2 2005/05/24 00:55 bcevc $
######################################################################


It aims to provide a framework which should it make very easy to 
programs to create any kind of modular program. In other words, this 
should enable you to have an application with plugins.

It supports:
  - module dependency solving
  - autoloading of modules
  - event handling (implemented as a contributed App::Modular module)

See the man page for more details.

contrib/Events.mom  view on Meta::CPAN

#!/usr/bin/perl -w
#----------------------------------------------------------------------------
#   App::Modular::Module::Events - perl program modularization framewok
#                                 event handler class
#
#   Copyright (c) 2003-2004 Baltasar Cevc
#
#   This code is released under the L<perlartistic> Perl Artistic
#   License, which can should be accessible via the C<perldoc
#   perlartistic> command and the file COPYING provided with this
#
#   DISCLAIMER: THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
#   COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR

contrib/Events.mom  view on Meta::CPAN


	my $modul = instance App::Modular;

	$modul->module('Me')->start_listen();
	$modul->module('You')->callme();

	exit;

=head1 DESCRIPTION

App::Modular aims to provide a framework which should it make very
easy to programmes to create any kind of modular program.

This module provides basic event handling as a contribution to that toolkit.
Modules may register themselves as listeners for events, if an event is
triggered, all the modules are notified by calling 
C<$module-\>event_handler('event', @params)>.

The events are speciefied as simple strings.

=head1 REFERENCE

lib/App/Modular.pm  view on Meta::CPAN

#!/usr/bin/perl -w
#----------------------------------------------------------------------------
#   App::Modular - perl program modularization framewok
#   App::Modular.pm: module management class
#
#   Copyright (c) 2003-2004 Baltasar Cevc
#
#   This code is released under the L<perlartistic> Perl Artistic
#   License, which can should be accessible via the C<perldoc
#   perlartistic> command and the file COPYING provided with this
#
#   DISCLAIMER: THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
#   COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR

lib/App/Modular.pm  view on Meta::CPAN

# return with something well-defined
1;

##################################
##        DOCUMENTATION         ##
##################################
=pod

=head1 NAME

B<App::Modular> - modularization framework for perl programs

=head1 SYNOPSIS

	package App::Modular::Module::Test;

	use base qw(App::Modular::Module);

	sub say_hello {
   		print "Hello, dear user!";
	};

lib/App/Modular.pm  view on Meta::CPAN

	use App::Modular;

	my $modul = instance App::Modular;

	$modul->module('Test')->say_hello();

	exit;

=head1 DESCRIPTION

App::Modular aims to provide a framework which should it make very
easy to programmes to create any kind of modular program.

It supports:

=over 4

=item * module dependency solving

=item * autoloading of modules

lib/App/Modular/Module.pm  view on Meta::CPAN

#!/usr/bin/perl
#----------------------------------------------------------------------------
#   App::Modular - perl program modularization framewok
#   App::Modular/module.pm: base class for all modules
#
#   Copyright (c) 2003-2004 Baltasar Cevc
#
#   This code is released under the L<perlartistic> Perl Artistic
#   License, which can should be accessible via the C<perldoc
#   perlartistic> command and the file COPYING provided with this
#
#   DISCLAIMER: THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
#   COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR

t/events/Events.mom  view on Meta::CPAN

#!/usr/bin/perl -w
#----------------------------------------------------------------------------
#   App::Modular::Module::Events - perl program modularization framewok
#                                 event handler class
#
#   Copyright (c) 2003-2004 Baltasar Cevc
#
#   This code is released under the L<perlartistic> Perl Artistic
#   License, which can should be accessible via the C<perldoc
#   perlartistic> command and the file COPYING provided with this
#
#   DISCLAIMER: THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
#   COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR

t/events/Events.mom  view on Meta::CPAN


	my $modul = instance App::Modular;

	$modul->module('Me')->start_listen();
	$modul->module('You')->callme();

	exit;

=head1 DESCRIPTION

App::Modular aims to provide a framework which should it make very
easy to programmes to create any kind of modular program.

This module provides basic event handling as a contribution to that toolkit.
Modules may register themselves as listeners for events, if an event is
triggered, all the modules are notified by calling 
C<$module-\>event_handler('event', @params)>.

The events are speciefied as simple strings.

=head1 REFERENCE

t/events/Listener.mom  view on Meta::CPAN

#!/usr/bin/perl -w
#----------------------------------------------------------------------------
#   App::Modular::Module::Listener - perl program modularization framewok
#                                   event handler test listener
#
#   Copyright (c) 2003-2004 Baltasar Cevc
#
#   This code is released under the L<perlartistic> Perl Artistic
#   License, which can should be accessible via the C<perldoc
#   perlartistic> command and the file COPYING provided with this
#
#   DISCLAIMER: THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
#   COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR



( run in 0.689 second using v1.01-cache-2.11-cpan-df04353d9ac )