Class::Container 0.12
Sponsored Links
Class::Container 0.12 Ranking & Summary
File size:
0.019 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1113
Date added:
2006-10-06
Publisher:
Ken Williams
Class::Container 0.12 description
Class::Container is a Perl module with Glues object frameworks together transparently.
SYNOPSIS
package Car;
use Class::Container;
@ISA = qw(Class::Container);
__PACKAGE__->valid_params
(
paint => {default => burgundy},
style => {default => coupe},
windshield => {isa => Glass},
radio => {isa => Audio::Device},
);
__PACKAGE__->contained_objects
(
windshield => Glass::Shatterproof,
wheel => { class => Vehicle::Wheel,
delayed => 1 },
radio => Audio::MP3,
);
sub new {
my $package = shift;
# windshield and radio objects are created automatically by
# SUPER::new()
my $self = $package->SUPER::new(@_);
$self->{right_wheel} = $self->create_delayed_object(wheel);
... do any more initialization here ...
return $self;
}
This class facilitates building frameworks of several classes that inter-operate. It was first designed and built for HTML::Mason, in which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer, and several other objects must create each other transparently, passing the appropriate parameters to the right class, possibly substituting other subclasses for any of these objects.
The main features of Class::Container are:
Explicit declaration of containment relationships (aggregation, factory creation, etc.)
Declaration of constructor parameters accepted by each member in a class framework
Transparent passing of constructor parameters to the class that needs them
Ability to create one (automatic) or many (manual) contained objects automatically and transparently
SYNOPSIS
package Car;
use Class::Container;
@ISA = qw(Class::Container);
__PACKAGE__->valid_params
(
paint => {default => burgundy},
style => {default => coupe},
windshield => {isa => Glass},
radio => {isa => Audio::Device},
);
__PACKAGE__->contained_objects
(
windshield => Glass::Shatterproof,
wheel => { class => Vehicle::Wheel,
delayed => 1 },
radio => Audio::MP3,
);
sub new {
my $package = shift;
# windshield and radio objects are created automatically by
# SUPER::new()
my $self = $package->SUPER::new(@_);
$self->{right_wheel} = $self->create_delayed_object(wheel);
... do any more initialization here ...
return $self;
}
This class facilitates building frameworks of several classes that inter-operate. It was first designed and built for HTML::Mason, in which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer, and several other objects must create each other transparently, passing the appropriate parameters to the right class, possibly substituting other subclasses for any of these objects.
The main features of Class::Container are:
Explicit declaration of containment relationships (aggregation, factory creation, etc.)
Declaration of constructor parameters accepted by each member in a class framework
Transparent passing of constructor parameters to the class that needs them
Ability to create one (automatic) or many (manual) contained objects automatically and transparently
Class::Container 0.12 Screenshot
Class::Container 0.12 Keywords
Container 0.12
Perl module
transparently
objects
object
class
frameworks
together
Class::Container
ClassContainer
Class::Container 0.12
Libraries
Programming
Bookmark Class::Container 0.12
Class::Container 0.12 Copyright
WareSeeker periodically updates pricing and software information of Class::Container 0.12 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::Container 0.12 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
myspace falling objects
business objects
objects in the rear view mirror may appear closer than they are
hidden objects games
sims 2 objects
falling objects
perl modules
sims objects
install perl module
largest transparently operated
installing perl module
xml parser perl module
transparently green
atrpms perl module helper
that transparently integrates
perl module tutorial
frameworks group
object lessons
Related Software
Class::Inner is a perlish implementation of Java like inner classes. Free Download
Class::CGI is a Perl module to fetch objects from your CGI object. Free Download
Class::Contract - Design-by-Contract OO in Perl. Free Download
Class::StrongSingleton is a stronger and more secure Singleton base class. Free Download
Basset::Container::Hash Perl module implements a layered hash. Free Download
Class::Adapter is a Perl implementation of the "Adapter" Design Pattern. Free Download
Class::Driver is a Perl module to generate driver ("composite") class hierarchies on-the-fly. Free Download
Class::Meta is a Perl class automation, introspection, and data validation. Free Download
Latest Software
Popular Software
Favourite Software