|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.fortress.MetaInfoEntry
public final class 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 String |
FACTORY_HANDLER
|
static String |
PER_THREAD_HANDLER
|
static String |
POOLABLE_HANDLER
|
static String |
THREADSAFE_HANDLER
|
Constructor Summary | |
---|---|
MetaInfoEntry(Class componentClass,
Properties properties,
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(String role)
Add a service/role for the component entry. |
boolean |
containsRole(String role)
Tests to see if a component exposes a role. |
static String |
createShortName(String className)
Convert a Component implmentation classname into a shorthand name. |
Class |
getComponentClass()
Get the Class for the component type. |
String |
getConfigurationName()
Get the configuration name for the component type. |
List |
getDependencies()
Get a reference to the dependencies list. |
Class |
getHandlerClass()
Get the Class for the component type's
org.apache.avalon.fortress.impl.handler.ComponentHandler . |
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 String THREADSAFE_HANDLER
public static final String POOLABLE_HANDLER
public static final String FACTORY_HANDLER
public static final String PER_THREAD_HANDLER
Constructor Detail |
---|
public MetaInfoEntry(Class componentClass, Properties properties, List deps) throws ClassNotFoundException
componentClass
- The Class
for the component typeproperties
- The Properties
object for meta info
ClassNotFoundException
- if the component handler class could not be foundpublic MetaInfoEntry(RoleEntry roleEntry)
RoleEntry
.
roleEntry
- The RoleEntry
to convertMethod Detail |
---|
public void makeReadOnly()
public Class getComponentClass()
Class
for the component type.
Class
public Class getHandlerClass()
Class
for the component type's
org.apache.avalon.fortress.impl.handler.ComponentHandler
.
Class
public String getConfigurationName()
public void addRole(String role)
role
- The new role
SecurityException
- if this MetaInfoEntry is read-onlypublic boolean containsRole(String role)
role
- The role to check
true
if it doespublic Iterator getRoles()
public List getDependencies()
public static final String createShortName(String className)
className
- The classname of a component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |