XML::Toolkit::Builder::ClassRegistry - A class to ...


XML-Toolkit documentation Contained in the XML-Toolkit distribution.

Index


Code Index:

NAME

Top

XML::Toolkit::Builder::ClassRegistry - A class to ...

VERSION

Top

This documentation refers to version 0.01.

SYNOPSIS

Top

use XML::Toolkit::Builder::ClassRegistry;

DESCRIPTION

Top

The XML::Toolkit::Builder::ClassRegistry class implements ...

SUBROUTINES / METHODS

Top

DEPENDENCIES

Top

Modules used, version dependencies, core yes/no

Moose::Role

NOTES

Top

...

BUGS AND LIMITATIONS

Top

None known currently, please email the author if you find any.

AUTHOR

Top

Chris Prather (perigrin@domain.tld)

LICENCE

Top

Copyright 2009 by Chris Prather.

This software is free. It is licensed under the same terms as Perl itself.


XML-Toolkit documentation Contained in the XML-Toolkit distribution.

package XML::Toolkit::Builder::ClassRegistry;
use Moose::Role;
use namespace::autoclean;

with qw(XML::Toolkit::Builder::NamespaceRegistry);

has class_registry => (
    isa     => 'HashRef',
    is      => 'ro',
    lazy    => 1,
    default => sub { {} },
    traits  => ['Hash'],
    handles => {
        'add_class'   => 'set',
        'classes'     => 'values',
        'class_names' => 'keys',
        'get_class'   => 'get',
        'has_class'   => 'exists',
    }
);

sub create_class {
    my $self = shift;
    Moose::Meta::Class->create(@_);
}

1;
__END__