|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.fortress.impl.role.AbstractMetaInfoManager
Provides the foundation for MetaInfoManagers.
Field Summary |
Fields inherited from interface org.apache.avalon.fortress.MetaInfoManager |
ROLE |
Constructor Summary | |
AbstractMetaInfoManager()
Default constructor--this RoleManager has no parent. |
|
AbstractMetaInfoManager(MetaInfoManager parent)
Create a MetaInfoManager with a parent manager. |
|
AbstractMetaInfoManager(MetaInfoManager parent,
java.lang.ClassLoader loader)
Alternate constructor--this RoleManager has the specified parent. |
|
AbstractMetaInfoManager(RoleManager parent)
Create a MetaInfoManager with a parent manager. |
Method Summary | |
protected void |
addComponent(java.lang.String role,
java.lang.String className,
java.util.Properties meta,
java.util.List deps)
Addition of a component to the meta info manager. |
protected java.lang.ClassLoader |
getLoader()
Get the classloader used for the RoleManager for any class that extends this one. |
MetaInfoEntry |
getMetaInfoForClassname(java.lang.String classname)
Get a MetaInfoEntry for a component type. |
MetaInfoEntry |
getMetaInfoForShortName(java.lang.String shortname)
Return the meta info relative to a supplied short name. |
protected boolean |
isAlreadyAdded(java.lang.String className)
Let us know that the meta and dependency info has already been loaded for a given class name. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMetaInfoManager()
public AbstractMetaInfoManager(RoleManager parent)
parent
- The parent RoleManager
.public AbstractMetaInfoManager(MetaInfoManager parent)
parent
- The parent MetaInfoManager
.public AbstractMetaInfoManager(MetaInfoManager parent, java.lang.ClassLoader loader)
parent
- The parent MetaInfoManager
loader
- The class loaderMethod Detail |
protected void addComponent(java.lang.String role, java.lang.String className, java.util.Properties meta, java.util.List deps)
role
- the role associated with the componentclassName
- the class namemeta
- the properties object for the meta infopublic MetaInfoEntry getMetaInfoForClassname(java.lang.String classname)
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.
getMetaInfoForClassname
in interface MetaInfoManager
classname
- The component type name
MetaInfoEntry
public MetaInfoEntry getMetaInfoForShortName(java.lang.String shortname)
getMetaInfoForShortName
in interface MetaInfoManager
shortname
- the short name
MetaInfoEntry
protected java.lang.ClassLoader getLoader()
protected boolean isAlreadyAdded(java.lang.String className)
className
- The name of the class to check
true
if it has been added
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |