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:
Avalon Development Team

Field Summary
 
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
 

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


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.