|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.avalon.phoenix.metainfo.ServiceDescriptor
This class describes the meta info of a service offered by a Block. Each service is defined by an interface name and the version of that interface.
| Constructor Summary | |
ServiceDescriptor(String name,
Version version)
Construct a service with specified name and version. |
|
| Method Summary | |
String |
getName()
Return name of Service (which coresponds to the interface name eg org.apache.block.WebServer) |
Version |
getVersion()
Return the version of interface |
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServiceDescriptor(String name,
Version version)
name - the name of the serviceversion - the version of service| Method Detail |
public Version getVersion()
public String getName()
public boolean matches(ServiceDescriptor other)
other - the other ServiceInfo
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||