public interface JpsContext
User: rkng Date: Nov 3, 2005 Time: 3:02:00 PM To change this template use File | Settings | File Templates.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of this context
|
<T extends ServiceInstance> |
getServiceInstance(java.lang.Class<T> serviceInstanceClass)
Returns the
ServiceInstance that corresponds to the specified serviceInstanceClass
If this |
java.util.Collection<ServiceInstance> |
getServiceInstances()
Returns all
ServiceInstance(s) associated with this context. |
<T extends ServiceInstance> |
getServiceInstances(java.lang.Class<T> serviceInstanceClass)
Returns the
ServiceInstance(s) that corresponds to the specified serviceInstanceClass |
java.lang.String getName()
<T extends ServiceInstance> T getServiceInstance(java.lang.Class<T> serviceInstanceClass)
ServiceInstance that corresponds to the specified serviceInstanceClass
If this JpsContext does not contain a ServiceInstance of the specified type, then null is returned.
If this JpsContext contains multiple ServiceInstances of the specified type, then the first ServiceInstance referenced in this JpsContext is returned.
serviceInstanceClass - class of desired ServiceInstanceServiceInstance associated with this context<T extends ServiceInstance> java.util.Collection<T> getServiceInstances(java.lang.Class<T> serviceInstanceClass)
ServiceInstance(s) that corresponds to the specified serviceInstanceClassserviceInstanceClass - type of ServiceInstance to be returned. This argument cannot be null.ServiceInstance(s) that corresponds to the specified serviceInstanceClass, or null if not foundjava.util.Collection<ServiceInstance> getServiceInstances()
ServiceInstance(s) associated with this context.ServiceInstance(s) associated with this context.