|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.metro.info.Descriptor
net.dpml.metro.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.
Constructor Summary | |
InfoDescriptor(String name,
String classname)
Creation of a new info descriptor using a supplied name, key, version and attribute set. |
|
InfoDescriptor(String name,
String classname,
Version version,
LifestylePolicy lifestyle,
CollectionPolicy collection,
ThreadSafePolicy threadsafe,
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. |
CollectionPolicy |
getCollectionPolicy()
Return the component collection policy. |
LifestylePolicy |
getLifestylePolicy()
Return the component lifestyle policy. |
String |
getName()
Return the symbolic name of component. |
ThreadSafePolicy |
getThreadSafePolicy()
Ruturn the thread-safe policy value. |
Version |
getVersion()
Return the version of component. |
int |
hashCode()
Return the hashcode for the object. |
boolean |
isHard()
Test is the component type implements a hard collection policy. |
boolean |
isSoft()
Test is the component type implements a soft collection policy. |
boolean |
isThreadSafe()
Ruturn the thread-safe status. |
boolean |
isWeak()
Test is the component type implements a weak collection policy. |
String |
toString()
Return a string representation of the info descriptor. |
Methods inherited from class net.dpml.metro.info.Descriptor |
getAttribute, getAttribute, getAttributeNames, getProperties |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InfoDescriptor(String name, String classname) throws IllegalArgumentException, NullPointerException
name
- the default component nameclassname
- the implemetation classname
IllegalArgumentException
- if the classname is invalid
NullPointerException
- if the classname is nullpublic InfoDescriptor(String name, String classname, Version version, LifestylePolicy lifestyle, CollectionPolicy collection, ThreadSafePolicy threadsafe, Properties attributes) throws IllegalArgumentException, NullPointerException
name
- the default component nameclassname
- the implemetation classnameversion
- the implementation versionlifestyle
- the component lifestyle (singleton, thread, etc.)collection
- the garbage collection policy for the componentthreadsafe
- if TRUE the type is declaring itself as threadsafeattributes
- a set of attributes associated with the component type
IllegalArgumentException
- if the implementation classname is invalid
NullPointerException
- if the classname argument is null.Method Detail |
public String getName()
public CollectionPolicy getCollectionPolicy()
public boolean isWeak()
public boolean isSoft()
public boolean isHard()
public String getClassname()
public Version getVersion()
public LifestylePolicy getLifestylePolicy()
public boolean isThreadSafe()
public ThreadSafePolicy getThreadSafePolicy()
public String toString()
public boolean equals(Object other)
equals
in class Descriptor
other
- the other object
public int hashCode()
hashCode
in class Descriptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |