|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceDirectory
The Service Directory API is the primary high-level interface for general access, although 'general' is a relative term in this context since most developers may never need to work with the Service Directory directly. However, this interface represents an important layer of access that, while perfectly adequate for many uses, it doesn't expose some of the deeper functionality; for that, developers should move to the admin interface.
The Service Directory disallows 'ghosts' so there can be no registered services without a bound implementation; this is true even if an implementation has deactivated itself.
ServiceDirectoryAdmin| Method Summary | |
|---|---|
ManagedService |
getService(Class clazz)
We take the class of the service interface we want to use and we return an implementation of that service interface. |
boolean |
isBoundImplementation(VersionedProviderImplementationName key)
Simple query to see if a particular implementation is known to the directory. |
boolean |
isRegisteredContract(Class serviceClass)
Simple query to see if a contract is registered or not. |
String |
toHTML()
This is a simple utility method will return the service directory as an HTML-formatted string. |
String |
toXML()
This is a simple utility method will return the service directory as an XML-formatted string. |
| Method Detail |
|---|
ManagedService getService(Class clazz)
throws UnavailableServiceException,
UnknownServiceException
clazz - This should be the class of an interface.
UnavailableServiceException - This exception gets thrown if
the service is known but has removed itself from an active state possibly due to some runtime failure.j
UnknownServiceException - This exception can be thrown if the
service that the proxy tries to acquire has been removed from the directory.boolean isBoundImplementation(VersionedProviderImplementationName key)
key - This is the key that will be used to indentify and acquire the impl object.
boolean isRegisteredContract(Class serviceClass)
serviceClass - This is the class object for the Service Contract interface.
String toXML()
String toHTML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||