public interface ServiceLocator
| Modifier and Type | Method and Description |
|---|---|
<T extends ServiceInstance> |
lookup(java.lang.Class<T> klass)
Returns the
ServiceInstance(s) that corresponds to the specified klass |
<T extends ServiceInstance> T lookup(java.lang.Class<T> klass) throws JpsException
ServiceInstance(s) that corresponds to the specified klassklass - 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