com.ibm.websphere.sca.context

Interface CompositeContext


  1. public interface CompositeContext
org.osoa.sca.CompositeContext was removed from the 1.0 version of the SCA spec. This class provides methods comparable to those that were removed.

Method Summary

Modifier and Type Method and Description
  1. <T>T
getService(java.lang.Class<T> interfaze,java.lang.String compServName)
Returns a proxy that provides access to the specified service.
  1. <T>org.osoa.sca.ServiceReference<T>
getServiceReference(java.lang.Class<T> interfaze,java.lang.String compServName)
Returns a ServiceReference for the specified service.

Method Detail

getService

  1. <T> T getService(java.lang.Class<T> interfaze,
  2. 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

  1. <T> org.osoa.sca.ServiceReference<T> getServiceReference( java.lang.Class<T> interfaze,
  2. 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