Keel 2.1RC2

org.apache.avalon.fortress.impl.role
Class Role2MetaInfoManager

java.lang.Object
  extended byorg.apache.avalon.fortress.impl.role.Role2MetaInfoManager
All Implemented Interfaces:
MetaInfoManager

public final class Role2MetaInfoManager
extends java.lang.Object
implements MetaInfoManager

Role2MetaInfoManagerTestCase does XYZ

Version:
CVS Revision: 1.1 $
Author:

Field Summary
private  RoleManager m_manager
           
private  MetaInfoManager m_parent
           
 
Fields inherited from interface org.apache.avalon.fortress.MetaInfoManager
ROLE
 
Constructor Summary
Role2MetaInfoManager(RoleManager manager)
           
Role2MetaInfoManager(RoleManager manager, MetaInfoManager parent)
           
 
Method Summary
 MetaInfoEntry getMetaInfoForClassname(java.lang.String classname)
          Get a MetaInfoEntry for a component type.
 MetaInfoEntry getMetaInfoForShortName(java.lang.String shortname)
          Get a MetaInfoEntry for a short name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_manager

private final RoleManager m_manager

m_parent

private final MetaInfoManager m_parent
Constructor Detail

Role2MetaInfoManager

public Role2MetaInfoManager(RoleManager manager)

Role2MetaInfoManager

public Role2MetaInfoManager(RoleManager manager,
                            MetaInfoManager parent)
Method Detail

getMetaInfoForShortName

public MetaInfoEntry getMetaInfoForShortName(java.lang.String shortname)
Get a MetaInfoEntry for a short name. The short name is an alias for a component type.

Specified by:
getMetaInfoForShortName in interface MetaInfoManager
Parameters:
shortname - The shorthand name for the component type.
Returns:
the proper RoleEntry

getMetaInfoForClassname

public MetaInfoEntry getMetaInfoForClassname(java.lang.String classname)
Get a MetaInfoEntry for a component type. This facilitates self-healing configuration files where the impl reads the configuration and translates all <component/> entries to use the short hand name for readability.

Specified by:
getMetaInfoForClassname in interface MetaInfoManager
Parameters:
classname - The component type name
Returns:
the proper RoleEntry

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.