|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.fortress.RoleEntry
public final class RoleEntry
Keeps track of the relationship of all the associated meta data for a component type. It records the role, short name, component class, and the handler class used to manage it. The short name is included strictly to enable "self-healing" configuration files.
Constructor Summary | |
---|---|
RoleEntry(String role,
String shortName,
Class componentClass,
Class handlerClass)
Create a RoleEntry with all the associated information. |
Method Summary | |
---|---|
Class |
getComponentClass()
Get the Class for the component type. |
Class |
getHandlerClass()
Get the Class for the component type's
org.apache.avalon.fortress.impl.handler.ComponentHandler . |
String |
getRole()
Get the role name for the component type. |
String |
getShortname()
Get the short name for the component type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleEntry(String role, String shortName, Class componentClass, Class handlerClass) throws IllegalArgumentException
RoleEntry
with all the associated information.
All arguments must be supplied.
role
- Role name for this component typeshortName
- Short name for this component typecomponentClass
- Class
to instantiate the
component typehandlerClass
- Class
to instantiate the
component handler
NullPointerException
- if any argument is null
.
IllegalArgumentException
Method Detail |
---|
public String getRole()
public String getShortname()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |