|
|||||||||||
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.ServiceDescriptor
This descriptor defines the type of service offerend or required by a component. The type corresponds to the class name of the class/interface implemented by component. Associated with each classname is a version object so that different versions of same interface can be represented.
Also associated with each service is a set of arbitrary
attributes that can be used to store extra information
about service. See InfoDescriptor
for example
of how to declare the container specific attributes.
Possible uses for the attributes are to declare a service as "stateless", "pass-by-value", "remotable" or even to attach attributes such as security or transaction constraints. These attributes are container specific and should not be relied upon to work in all containers.
Constructor Summary | |
ServiceDescriptor(ReferenceDescriptor designator)
Construct a service descriptor for specified ReferenceDescriptor |
|
ServiceDescriptor(ReferenceDescriptor designator,
Properties attributes)
Construct a service with specified name, version and attributes. |
|
ServiceDescriptor(ServiceDescriptor descriptor)
Construct a service descriptor. |
Method Summary | |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
ReferenceDescriptor |
getReference()
Retrieve the reference that service descriptor refers to. |
int |
hashCode()
Return the cashcode for this instance. |
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, toString, wait, wait, wait |
Constructor Detail |
public ServiceDescriptor(ServiceDescriptor descriptor) throws NullPointerException
descriptor
- the service descriptor
NullPointerException
- if the descriptor argument is nullpublic ServiceDescriptor(ReferenceDescriptor designator) throws NullPointerException
designator
- the service reference
NullPointerException
- if the designator argument is nullpublic ServiceDescriptor(ReferenceDescriptor designator, Properties attributes) throws NullPointerException
designator
- the ReferenceDescriptorattributes
- the attributes of service
NullPointerException
- if the designator argument is nullMethod Detail |
public ReferenceDescriptor getReference()
public int hashCode()
hashCode
in class Descriptor
public boolean equals(Object other)
equals
in class Descriptor
other
- the object to compare this object with
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |