org.apache.avalon.fortress
Interface MetaInfoManager

All Known Implementing Classes:
AbstractMetaInfoManager, Role2MetaInfoManager

public interface MetaInfoManager

MetaInfoManager Interface, use this to specify the Components and how they correspond to easy shorthand names. The MetaInfoManager assumes a one to one relationship of shorthand names to classes. A component can have any number of roles associated with it, so it is more flexible and robust than the {@link RoleManager) alternative.

Version:
CVS $Revision: 1.3 $ $Date: 2004/02/28 15:16:24 $
Author:
Avalon Development Team

Field Summary
static java.lang.String ROLE
          Convenience constant to make lookup of the MetaInfoManager easer.
 
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.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Convenience constant to make lookup of the MetaInfoManager easer.

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.

Parameters:
shortname - The shorthand name for the component type.
Returns:
the proper MetaInfoEntry

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.

Parameters:
classname - The component type name
Returns:
the proper MetaInfoEntry


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