|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.fortress.impl.role.AbstractMetaInfoManager
public abstract class 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,
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(String role,
String className,
Properties meta,
List deps)
Addition of a component to the meta info manager. |
protected ClassLoader |
getLoader()
Get the classloader used for the RoleManager for any class that extends this one. |
MetaInfoEntry |
getMetaInfoForClassname(String classname)
Get a MetaInfoEntry for a component type. |
MetaInfoEntry |
getMetaInfoForShortName(String shortname)
Return the meta info relative to a supplied short name. |
protected boolean |
isAlreadyAdded(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, ClassLoader loader)
parent
- The parent MetaInfoManager
loader
- The class loaderMethod Detail |
---|
protected void addComponent(String role, String className, Properties meta, List deps)
role
- the role associated with the componentclassName
- the class namemeta
- the properties object for the meta infopublic MetaInfoEntry getMetaInfoForClassname(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(String shortname)
getMetaInfoForShortName
in interface MetaInfoManager
shortname
- the short name
MetaInfoEntry
protected ClassLoader getLoader()
protected boolean isAlreadyAdded(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 |