public class ImmutableServiceDiscovery extends java.lang.Object implements IServiceDiscovery
| Constructor and Description |
|---|
ImmutableServiceDiscovery(IServiceRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.lang.String name)
Returns true if the service exists otherwise false
|
java.lang.Object |
lookup(java.lang.String name)
Looking up a service
|
public ImmutableServiceDiscovery(IServiceRegistry registry)
public java.lang.Object lookup(java.lang.String name)
IServiceDiscoverylookup in interface IServiceDiscoveryname - The service's namenull if not registeredpublic boolean exists(java.lang.String name)
IServiceDiscoveryexists in interface IServiceDiscoveryname - The service's nametrue if the service exists otherwise false