|
|||||||||||
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 int |
CONSERVATIVE
|
static String |
CONSERVATIVE_KEY
|
static int |
DEMOCRAT
|
static String |
DEMOCRAT_KEY
|
static int |
HARD
|
static String |
HARD_KEY
|
static int |
LIBERAL
|
static String |
LIBERAL_KEY
|
static String |
POOLED
|
static String |
SINGLETON
|
static int |
SOFT
|
static String |
SOFT_KEY
|
static String |
THREAD
|
static String |
TRANSIENT
|
static int |
UNDEFINED
|
static int |
WEAK
|
static String |
WEAK_KEY
|
Constructor Summary | |
InfoDescriptor(String name,
String classname,
Version version,
String lifestyle,
String collection,
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. |
int |
getCollectionPolicy()
Return the component termination policy as a String. |
static int |
getCollectionPolicy(String policy)
|
static String |
getCollectionPolicyKey(int policy)
|
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. |
boolean |
isConservative()
Test is the component type implements a coservative collection policy. |
boolean |
isDemocrat()
Test is the component type implements a democrat collection policy. |
boolean |
isLiberal()
Test is the component type implements a liberal collection policy. |
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
public static final String LIBERAL_KEY
public static final String DEMOCRAT_KEY
public static final String CONSERVATIVE_KEY
public static final int UNDEFINED
public static final int LIBERAL
public static final int DEMOCRAT
public static final int CONSERVATIVE
public static final String WEAK_KEY
public static final String SOFT_KEY
public static final String HARD_KEY
public static final int WEAK
public static final int SOFT
public static final int HARD
Constructor Detail |
public InfoDescriptor(String name, String classname, Version version, String lifestyle, String collection, 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 int getCollectionPolicy()
public boolean isLiberal()
public boolean isDemocrat()
public boolean isConservative()
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
public static String getCollectionPolicyKey(int policy)
public static int getCollectionPolicy(String policy)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |