public abstract class JpsServiceLocator extends java.lang.Object implements ServiceLocator
| Constructor and Description |
|---|
JpsServiceLocator() |
| Modifier and Type | Method and Description |
|---|---|
static ServiceLocator |
getServiceLocator()
Returns the default ServiceLocator
|
abstract <T extends ServiceInstance> |
lookup(java.lang.Class<T> klass)
Returns the
ServiceInstance(s) that corresponds to the specified klass |
public static ServiceLocator getServiceLocator()
public abstract <T extends ServiceInstance> T lookup(java.lang.Class<T> klass) throws JpsException
ServiceLocatorServiceInstance(s) that corresponds to the specified klasslookup in interface ServiceLocatorklass - type of ServiceInstance to be returned. This argument cannot be null.ServiceInstance(s) that corresponds to the specified klass, or null if not foundJpsException - if an error condition occurred during the lookup process