com.ibm.websphere.sca.context
Interface CompositeContext
- public interface CompositeContext
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getService(java.lang.Class<T> interfaze,java.lang.String compServName)
Returns a proxy that provides access to the specified service.
|
|
getServiceReference(java.lang.Class<T> interfaze,java.lang.String compServName)
Returns a ServiceReference
|
Method Detail
getService
- <T> T getService(java.lang.Class<T> interfaze,
- java.lang.String compServName)
Returns a proxy that provides access to the specified service.
Parameters:
interfaze
- the interface that will be used to invoke the service. compServName
- the name of the target component/service. Returns:
a proxy to the to the service specified by the parameters.
Throws:
unchecked
- exception : NoSuchServiceException getServiceReference
- <T> org.osoa.sca.ServiceReference<T> getServiceReference( java.lang.Class<T> interfaze,
- java.lang.String compServName)
Returns a ServiceReference for the specified service.
Parameters:
interfaze
- the interface that will be used to invoke the service. compServName
- the name of the target component/service. Returns:
a ServiceReference for the service specified by the
parameters.
Throws:
unchecked
- exception : NoSuchServiceException