|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.metro.info.ServiceDescriptor
public final class ServiceDescriptor
This ServiceDescriptor defines the interface and service version published by a service instance.
| Constructor Summary | |
|---|---|
ServiceDescriptor(String spec)
Construct a service with specified type. |
|
ServiceDescriptor(String classname,
Version version)
Construct a service with specified name, version. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compare this object with another for equality. |
String |
getClassname()
Return classname of service specification. |
Version |
getVersion()
Return the service version. |
int |
hashCode()
Returns the cashcode. |
boolean |
matches(ServiceDescriptor 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 ServiceDescriptor(String spec)
throws NullPointerException
spec - the service specification
NullPointerException - if the spec is null
public ServiceDescriptor(String classname,
Version version)
throws NullPointerException
classname - the name of the serviceversion - the version of service
NullPointerException - if the classname or version is null| Method Detail |
|---|
public String getClassname()
public Version getVersion()
public boolean matches(ServiceDescriptor other)
other - the other ServiceInfo
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectother - the object to compare this object with
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||