org.apache.avalon.fortress
Interface MetaInfoManager


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 String ROLE
          Convenience constant to make lookup of the MetaInfoManager easer.
 
Method Summary
 MetaInfoEntry getMetaInfoForClassname(String classname)
          Get a MetaInfoEntry for a component type.
 MetaInfoEntry getMetaInfoForShortName(String shortname)
          Get a MetaInfoEntry for a short name.
 

Field Detail

ROLE

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

Method Detail

getMetaInfoForShortName

MetaInfoEntry getMetaInfoForShortName(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

MetaInfoEntry getMetaInfoForClassname(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 © 2003-2012 Apache Software Foundation. All Rights Reserved.