Class::IntrospectionMethods::CatalogClass::IntrospectionMethods::Catalog can manage catalogs from IntrospectionMethods. | |
Download |
Class::IntrospectionMethods::Catalog Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Dominique Dumont
- Publisher web site:
Class::IntrospectionMethods::Catalog Tags
Class::IntrospectionMethods::Catalog Description
Class::IntrospectionMethods::Catalog can manage catalogs from IntrospectionMethods. Class::IntrospectionMethods::Catalog can manage catalogs from IntrospectionMethods.Exported functionsset_method_info( target_class, method_name, info_ref )Store construction info for method method_name of class target_class.set_global_catalog (target_class, ...)Store catalog informations. The first parameter is the class featuring the methods declared in the global catalog.Following paramaters is a set of named paramaters (e.g. key => value):nameMandatory name for the global cataloglistarray ref containing the list of slot and catalog. E.g.: list => => foo_catalog, => alpha_catalog, my_object => my_catalog ],isaOptional hash ref declaring a containment for catalog. E.g: list => , isa => { USER => 'ROOT' }Then the 'ROOT' catalog will return 'foo', and the 'USER' catalog will return 'foo' and 'admin'.helpOptional hash ref (slot_name => help). Store some help information for each slot.set_global_catalog will construct:A ClassCatalog object containing the global catalog informations.A sub_ref containing the ClassCatalog object in a closure.Returns ( slot_name, sub_ref ). The sub_ref is to be installed in the target class.When called as a class method, the subref will return the ClassCatalog object. When called as a target class method, the subref will return an ObjectCatalog object associated to the ClassCatalog object stored in the closure.These 2 object have the same API. ObjectCatalog is used to contain catalog changes that may occur at run-time. ClassCatalog informations will not change. Requirements: · Perl
Class::IntrospectionMethods::Catalog Related Software