|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.meta.info.ReferenceDescriptor
This reference defines the type of interface required by a component. The type corresponds to the class name of the interface implemented by component. Associated with each classname is a version object so that different versions of same interface can be represented.
Constructor Summary | |
ReferenceDescriptor(String type)
Construct a service with specified type. |
|
ReferenceDescriptor(String classname,
Version version)
Construct a service with specified name, version and attributes. |
Method Summary | |
boolean |
equals(Object other)
Compare this object with another for equality. |
String |
getClassname()
Return classname of interface this reference refers to. |
Version |
getVersion()
Return the version of interface. |
int |
hashCode()
Returns the cashcode. |
boolean |
matches(ReferenceDescriptor other)
Determine if specified service will match this service. |
String |
toString()
Convert to a string of format name:version |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ReferenceDescriptor(String type) throws NullPointerException
type
- the service type spec
NullPointerException
- if the classname is nullpublic ReferenceDescriptor(String classname, Version version) throws NullPointerException
classname
- the name of the serviceversion
- the version of service
NullPointerException
- if the classname or version is null
IllegalArgumentException
- if the classname string is invalidMethod Detail |
public String getClassname()
public Version getVersion()
public boolean matches(ReferenceDescriptor other)
other
- the other ServiceInfo
public String toString()
public boolean equals(Object other)
other
- the object to compare this object with
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |