|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.fortress.MetaInfoEntry
Keeps track of the relationship of all the associated meta data for a component type. It records all the roles, short name, component class, and the handler class used to manage it. The short name is included strictly to enable "self-healing" configuration files.
| Field Summary | |
static java.lang.String |
FACTORY_HANDLER
|
static java.lang.String |
PER_THREAD_HANDLER
|
static java.lang.String |
POOLABLE_HANDLER
|
static java.lang.String |
THREADSAFE_HANDLER
|
| Constructor Summary | |
MetaInfoEntry(java.lang.Class componentClass,
java.util.Properties properties,
java.util.List deps)
Create a MetaInfoEntry from the supplied component class, and the supplied meta information. |
|
MetaInfoEntry(RoleEntry roleEntry)
Create a MetaInfoEntry from the supplied RoleEntry. |
|
| Method Summary | |
void |
addRole(java.lang.String role)
Add a service/role for the component entry. |
boolean |
containsRole(java.lang.String role)
Tests to see if a component exposes a role. |
static java.lang.String |
createShortName(java.lang.String className)
Convert a Component implmentation classname into a shorthand name. |
java.lang.Class |
getComponentClass()
Get the Class for the component type. |
java.lang.String |
getConfigurationName()
Get the configuration name for the component type. |
java.util.List |
getDependencies()
Get a reference to the dependencies list. |
java.lang.Class |
getHandlerClass()
Get the Class for the component type's
ComponentHandler. |
java.util.Iterator |
getRoles()
Get an iterator for all the roles. |
void |
makeReadOnly()
Make the component entry read only, so no more services can be added. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String THREADSAFE_HANDLER
public static final java.lang.String POOLABLE_HANDLER
public static final java.lang.String FACTORY_HANDLER
public static final java.lang.String PER_THREAD_HANDLER
| Constructor Detail |
public MetaInfoEntry(java.lang.Class componentClass,
java.util.Properties properties,
java.util.List deps)
throws java.lang.ClassNotFoundException
componentClass - The Class for the component typeproperties - The Properties object for meta info
java.lang.ClassNotFoundException - if the component handler class could not be foundpublic MetaInfoEntry(RoleEntry roleEntry)
RoleEntry.
roleEntry - The RoleEntry to convert| Method Detail |
public void makeReadOnly()
public java.lang.Class getComponentClass()
Class for the component type.
Classpublic java.lang.Class getHandlerClass()
Class for the component type's
ComponentHandler.
Classpublic java.lang.String getConfigurationName()
public void addRole(java.lang.String role)
role - The new role
java.lang.SecurityException - if this MetaInfoEntry is read-onlypublic boolean containsRole(java.lang.String role)
role - The role to check
true if it doespublic java.util.Iterator getRoles()
public java.util.List getDependencies()
public static final java.lang.String createShortName(java.lang.String className)
className - The classname of a component
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||