Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

class::c3::componentised5.18(3) [mojave man page]

Class::C3::Componentised(3)				User Contributed Perl Documentation			       Class::C3::Componentised(3)

NAME
Class::C3::Componentised DESCRIPTION
Load mix-ins or components to your C3-based class. SYNOPSIS
package MyModule; use strict; use warnings; use base 'Class::C3::Componentised'; sub component_base_class { "MyModule::Component" } package main; MyModule->load_components( qw/Foo Bar/ ); # Will load MyModule::Component::Foo and MyModule::Component::Bar DESCRIPTION
This will inject base classes to your module using the Class::C3 method resolution order. Please note: these are not plugins that can take precedence over methods declared in MyModule. If you want something like that, consider MooseX::Object::Pluggable. METHODS
load_components( @comps ) Loads the given components into the current module. If a module begins with a "+" character, it is taken to be a fully qualified class name, otherwise "$class->component_base_class" is prepended to it. Calling this will call "Class::C3::reinitialize". load_own_components( @comps ) Similar to load_components, but assumes every class is "$class::$comp". load_optional_components As load_components, but will silently ignore any components that cannot be found. ensure_class_loaded Given a class name, tests to see if it is already loaded or otherwise defined. If it is not yet loaded, the package is require'd, and an exception is thrown if the class is still not loaded. BUG: For some reason, packages with syntax errors are added to %INC on require ensure_class_found Returns true if the specified class is installed or already loaded, false otherwise. Note that the underlying mechanism (Class::Inspector->installed()) used by this sub will not, at the time of writing, correctly function when @INC includes coderefs. Since PAR relies upon coderefs in @INC, this function should be avoided in modules that are likely to be included within a PAR. inject_base Does the actual magic of adjusting @ISA on the target module. load_optional_class Returns a true value if the specified class is installed and loaded successfully, throws an exception if the class is found but not loaded successfully, and false if the class is not installed AUTHORS
Matt S. Trout and the DBIx::Class team Pulled out into seperate module by Ash Berlin "<ash@cpan.org>" Optimizations and overall bolt-tightening by Peter "ribasushi" Rabbitson "<ribasushi@cpan.org>" COPYRIGHT
Copyright (c) 2006 - 2011 the Class::C3::Componentised "AUTHORS" as listed above. LICENSE
You may distribute this code under the same terms as Perl itself. perl v5.18.2 2011-08-08 Class::C3::Componentised(3)

Check Out this Related Man Page

Class::Inspector::Functions(3)				User Contributed Perl Documentation			    Class::Inspector::Functions(3)

NAME
Class::Inspector::Functions - Get information about a class and its structure SYNOPSIS
use Class::Inspector::Functions; # Class::Inspector provides a non-polluting, # method based interface! # Is a class installed and/or loaded installed( 'Foo::Class' ); loaded( 'Foo::Class' ); # Filename related information filename( 'Foo::Class' ); resolved_filename( 'Foo::Class' ); # Get subroutine related information functions( 'Foo::Class' ); function_refs( 'Foo::Class' ); function_exists( 'Foo::Class', 'bar' ); methods( 'Foo::Class', 'full', 'public' ); # Find all loaded subclasses or something subclasses( 'Foo::Class' ); DESCRIPTION
Class::Inspector::Functions is a function based interface of Class::Inspector. For a thorough documentation of the available functions, please check the manual for the main module. Exports The following functions are exported by default. installed loaded filename functions methods subclasses The following functions are exported only by request. resolved_filename loaded_filename function_refs function_exists All the functions may be imported using the ":ALL" tag. SUPPORT
Bugs should be reported via the CPAN bug tracker http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-Inspector <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-Inspector> For other issues, or commercial enhancement or support, contact the author. AUTHOR
Adam Kennedy <adamk@cpan.org> Steffen Mueller <smueller@cpan.org> SEE ALSO
<http://ali.as/>, Class::Handle COPYRIGHT
Copyright 2002 - 2012 Adam Kennedy. Class::Inspector::Functions copyright 2008 - 2009 Steffen Mueller. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.16.2 2012-10-19 Class::Inspector::Functions(3)
Man Page