|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.meta.info.Type
This class contains the meta information about a particular component type. It describes;
UML
Constructor Summary | |
Type(InfoDescriptor descriptor,
CategoryDescriptor[] loggers,
ContextDescriptor context,
ServiceDescriptor[] services,
DependencyDescriptor[] dependencies,
StageDescriptor[] stages,
ExtensionDescriptor[] extensions)
Creation of a new Type instance using a supplied component descriptor, logging, cotext, services, depedencies, stages and extension descriptors. |
|
Type(InfoDescriptor descriptor,
CategoryDescriptor[] loggers,
ContextDescriptor context,
ServiceDescriptor[] services,
DependencyDescriptor[] dependencies,
StageDescriptor[] stages,
ExtensionDescriptor[] extensions,
Configuration defaults)
Creation of a new Type instance using a supplied component descriptor, logging, cotext, services, depedencies, stages and extension descriptors. |
Method Summary | |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
CategoryDescriptor[] |
getCategories()
Return the set of Logger that this Component will use. |
Configuration |
getConfiguration()
Returns the default configuration supplied with the type. |
ContextDescriptor |
getContext()
Return the ContextDescriptor for component, may be null. |
DependencyDescriptor[] |
getDependencies()
Return the set of Dependencies that this component requires to operate. |
DependencyDescriptor |
getDependency(String key)
Retrieve a dependency with a particular role. |
ExtensionDescriptor |
getExtension(StageDescriptor stage)
Return the extension supporting the supplied stage. |
ExtensionDescriptor |
getExtension(String key)
Return the extension supporting the supplied stage. |
ExtensionDescriptor[] |
getExtensions()
Return the stages extension handling provided by this extension. |
InfoDescriptor |
getInfo()
Return the Component descriptor. |
ServiceDescriptor |
getService(ReferenceDescriptor reference)
Retrieve a service with a particular reference. |
ServiceDescriptor |
getService(String classname)
Retrieve a service with a particular classname. |
ServiceDescriptor[] |
getServices()
Return the set of Services that this component is capable of providing. |
StageDescriptor[] |
getStages()
Return the lifecycle stages extensions required by this component type. |
int |
hashCode()
Return the hashcode for the object. |
boolean |
isaCategory(String name)
Return TRUE if the set of Logger descriptors includes the supplied name. |
String |
toString()
Return a string representation of the type. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Type(InfoDescriptor descriptor, CategoryDescriptor[] loggers, ContextDescriptor context, ServiceDescriptor[] services, DependencyDescriptor[] dependencies, StageDescriptor[] stages, ExtensionDescriptor[] extensions) throws NullPointerException
descriptor
- a component descriprot that contains 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 supplyingdependencies
- a set of depedency descriptors that detail the service
that this component type is depedent onstages
- a set of stage descriprors that detail the extension stage
interfaces that this component requires a handler forextensions
- a set of lifecycle extension capabilities that this
componet can provide to its container during the process of stage
suppier resolution
NullPointerException
- if the descriptor, loggers, context, services,
dependencies, stages, or extensions argument is nullpublic Type(InfoDescriptor descriptor, CategoryDescriptor[] loggers, ContextDescriptor context, ServiceDescriptor[] services, DependencyDescriptor[] dependencies, StageDescriptor[] stages, ExtensionDescriptor[] extensions, Configuration defaults) throws NullPointerException
descriptor
- a component descriprot that contains 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 descriprors that detail the service that
this component type is capable of supplyingdependencies
- a set of depedency descriprors that detail the service
that this component type is depedent onstages
- a set of stage descriprors that detail the extensiuon stage
interfaces that this component requires a handler forextensions
- a set of lifecycle extension capabilities that this
componet can provide to its container during the process of stage
suppier resolution
NullPointerException
- if the descriptor, loggers, context, services,
dependencies, stages, or extensions argument is nullMethod Detail |
public InfoDescriptor getInfo()
public CategoryDescriptor[] getCategories()
public boolean isaCategory(String name)
name
- the logging subcategory name
public ContextDescriptor getContext()
public ServiceDescriptor[] getServices()
public ServiceDescriptor getService(ReferenceDescriptor reference)
reference
- a service reference descriptor
public ServiceDescriptor getService(String classname)
classname
- the service classname
public DependencyDescriptor[] getDependencies()
public DependencyDescriptor getDependency(String key)
key
- the service key
public Configuration getConfiguration()
public StageDescriptor[] getStages()
public ExtensionDescriptor[] getExtensions()
public ExtensionDescriptor getExtension(StageDescriptor stage)
stage
- the lifecycle stage that this type requires a handler for
public ExtensionDescriptor getExtension(String key)
key
- the lifecycle stage that this type requires a handler for
public String toString()
public boolean equals(Object other)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |