com.ibm.websphere.sca.context

Interface CompositeContext



  • 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

      Methods 
      Modifier and Type Method and Description
      <T> T getService(java.lang.Class<T> interfaze, java.lang.String compServName)
      Returns a proxy that provides access to the specified service.
      <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

        <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
IBM WebSphere Application ServerTM
Release 8.5