|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.meta.info.Descriptor
org.apache.avalon.meta.info.InfoDescriptor
This class is used to provide explicit information to assembler and administrator about the Component. It includes information such as;
The InfoDescriptor also includes an arbitrary set of attributes about component. Usually these are container specific attributes that can store arbitrary information. The attributes should be stored with keys based on package name of container.
Field Summary | |
static String |
POOLED
|
static String |
SINGLETON
|
static String |
THREAD
|
static String |
TRANSIENT
|
Constructor Summary | |
InfoDescriptor(String classname)
Creation of a new component descriptor using a supplied name, key, version and attribute set. |
|
InfoDescriptor(String name,
String classname,
Version version,
String lifestyle,
String schema,
Properties attributes)
Creation of a new info descriptor using a supplied name, key, version and attribute set. |
Method Summary | |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
String |
getClassname()
Return the implementation class name for the component type. |
String |
getConfigurationSchema()
Return the configuration schema. |
String |
getLifestyle()
Return the component lifestyle. |
String |
getName()
Return the symbolic name of component. |
Version |
getVersion()
Return the version of component. |
int |
hashCode()
Return the hashcode for the object. |
String |
toString()
Return a string representation of the info descriptor. |
Methods inherited from class org.apache.avalon.meta.info.Descriptor |
getAttribute, getAttribute, getAttributeNames, getProperties |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String TRANSIENT
public static final String SINGLETON
public static final String THREAD
public static final String POOLED
Constructor Detail |
public InfoDescriptor(String classname) throws IllegalArgumentException
classname
- the implemetation classname
IllegalArgumentException
- if the implementation key is not a classnamepublic InfoDescriptor(String name, String classname, Version version, String lifestyle, String schema, Properties attributes) throws IllegalArgumentException
name
- the component nameclassname
- the implemetation classnameversion
- the implementation versionattributes
- a set of attributes associated with the component type
IllegalArgumentException
- if the implementation key is not a classnameMethod Detail |
public String getName()
public String getConfigurationSchema()
public String getClassname()
public Version getVersion()
public String getLifestyle()
public String toString()
public boolean equals(Object other)
equals
in class Descriptor
other
- the object to compare this object with
public int hashCode()
hashCode
in class Descriptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |