|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.lang.AbstractDirective
net.dpml.metro.info.Type
public class Type
This class contains the meta information about a particular component type. It describes;
| Constructor Summary | |
|---|---|
Type(InfoDescriptor info,
CategoryDescriptor[] loggers,
ContextDescriptor context,
ServiceDescriptor[] services,
State graph)
Creation of a new Type instance using a supplied component descriptor, logging, context, services, and part references. |
|
| Method Summary | |
|---|---|
static Type |
createType(Class subject)
Utility operation to construct a default type given a supplied class. |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
CategoryDescriptor[] |
getCategoryDescriptors()
Return the set of Logger that this Component will use. |
ContextDescriptor |
getContextDescriptor()
Return the ContextDescriptor for component. |
InfoDescriptor |
getInfo()
Return the info descriptor. |
ServiceDescriptor |
getServiceDescriptor(ServiceDescriptor reference)
Retrieve a service descriptor matching the supplied reference. |
ServiceDescriptor |
getServiceDescriptor(String classname)
Retrieve a service descriptor matching the supplied classname. |
ServiceDescriptor[] |
getServiceDescriptors()
Get the set of service descriptors defining the set of services that the component type exports. |
State |
getStateGraph()
Return the state graph for the component type. |
int |
hashCode()
Return the hashcode for the object. |
boolean |
isaCategory(String name)
Return TRUE if the logging categories includes a category with a matching name. |
String |
toString()
Return a string representation of the type. |
| Methods inherited from class net.dpml.lang.AbstractDirective |
|---|
equals, hashArray, hashValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Type(InfoDescriptor info,
CategoryDescriptor[] loggers,
ContextDescriptor context,
ServiceDescriptor[] services,
State graph)
throws NullPointerException
info - information about the component typeloggers - a set of logger descriptors the declare the logging channels
required by the typecontext - a component context descriptor that declares the context type
and context entry key and value classnamesservices - a set of service descriptors that detail the service that
this component type is capable of supplyinggraph - the state graph
NullPointerException - if the info, loggers, state, or context is null| Method Detail |
|---|
public State getStateGraph()
public InfoDescriptor getInfo()
public CategoryDescriptor[] getCategoryDescriptors()
public boolean isaCategory(String name)
name - the logging category name
public ContextDescriptor getContextDescriptor()
public ServiceDescriptor[] getServiceDescriptors()
public ServiceDescriptor getServiceDescriptor(ServiceDescriptor reference)
reference - a service descriptor to match against
public ServiceDescriptor getServiceDescriptor(String classname)
classname - the service classname
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class AbstractDirectiveother - the other object
public int hashCode()
hashCode in class AbstractDirective
public static Type createType(Class subject)
throws IntrospectionException
subject - the component implementation class
IntrospectionException - if an introspection error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||