|
||||||||||
| 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 | |
|---|---|
private java.util.Map |
m_classnames
Map for classname to MetaInfoEntry. |
private java.lang.ClassLoader |
m_loader
The classloader used to load and check roles and components. |
private org.apache.avalon.fortress.MetaInfoManager |
m_parent
Parent MetaInfoManager for nested resolution. |
private java.util.Map |
m_shorthands
Map for shorthand to MetaInfoEntry. |
| Fields inherited from interface org.apache.avalon.fortress.MetaInfoManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractMetaInfoManager()
Default constructor--this RoleManager has no parent. |
|
AbstractMetaInfoManager(org.apache.avalon.fortress.MetaInfoManager parent)
Create a MetaInfoManager with a parent manager. |
|
AbstractMetaInfoManager(org.apache.avalon.fortress.MetaInfoManager parent,
java.lang.ClassLoader loader)
Alternate constructor--this RoleManager has the specified parent. |
|
AbstractMetaInfoManager(org.apache.avalon.fortress.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. |
org.apache.avalon.fortress.MetaInfoEntry |
getMetaInfoForClassname(java.lang.String classname)
Get a MetaInfoEntry for a component type. |
org.apache.avalon.fortress.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 |
| Field Detail |
|---|
private final java.lang.ClassLoader m_loader
private final java.util.Map m_shorthands
private final java.util.Map m_classnames
private final org.apache.avalon.fortress.MetaInfoManager m_parent
MetaInfoManager for nested resolution.
| Constructor Detail |
|---|
public AbstractMetaInfoManager()
public AbstractMetaInfoManager(org.apache.avalon.fortress.RoleManager parent)
parent - The parent RoleManager.public AbstractMetaInfoManager(org.apache.avalon.fortress.MetaInfoManager parent)
parent - The parent MetaInfoManager.
public AbstractMetaInfoManager(org.apache.avalon.fortress.MetaInfoManager parent,
java.lang.ClassLoader loader)
parent - The parent MetaInfoManagerloader - The class loader| Method 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 org.apache.avalon.fortress.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 org.apache.avalon.fortress.MetaInfoManagerclassname - The component type name
MetaInfoEntrypublic org.apache.avalon.fortress.MetaInfoEntry getMetaInfoForShortName(java.lang.String shortname)
getMetaInfoForShortName in interface org.apache.avalon.fortress.MetaInfoManagershortname - the short name
MetaInfoEntryprotected 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 | |||||||||