Package org.apache.tuscany.sca.implementation.java.context

Examples of org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper


        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
       
        try {
            // The following call might create a new conversation, as a result, the msg.getConversationID() might
            // return a new value
            ReflectiveInstanceWrapper wrapper = (ReflectiveInstanceWrapper) scopeContainer.getWrapper(contextId);
           
            // If there is a callback interface and the implementation is stateless, we need to
            // inject callbacks at invocation time. For Composite scope, this has already been done.
            if (( interfaze.getCallbackInterface() != null && (scopeContainer.getScope().equals(Scope.STATELESS))){
              injectCallbacks(wrapper, (JavaInterface)interfaze.getCallbackInterface());
            }
           
            Object instance = wrapper.getInstance();

            // If the method couldn't be computed statically, or the instance being
            // invoked is a user-specified callback object that doesn't implement
            // the service interface from which the reflective method was obtained,
            // compute the method object dynamically for this invocation.
View Full Code Here


        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
       
        try {
            // The following call might create a new conversation, as a result, the msg.getConversationID() might
            // return a new value
            ReflectiveInstanceWrapper wrapper = (ReflectiveInstanceWrapper) scopeContainer.getWrapper(contextId);
           
            // If there is a callback interface and the implementation is stateless, we need to
            // inject callbacks at invocation time. For Composite scope, this has already been done.
            if (( interfaze.getCallbackInterface() != null && (scopeContainer.getScope().equals(Scope.STATELESS))){
              injectCallbacks(wrapper, (JavaInterface)interfaze.getCallbackInterface());
            }
           
            Object instance = wrapper.getInstance();

            // If the method couldn't be computed statically, or the instance being
            // invoked is a user-specified callback object that doesn't implement
            // the service interface from which the reflective method was obtained,
            // compute the method object dynamically for this invocation.
View Full Code Here

        boolean swapTCCL = (msg.getHeaders().get(Constants.SUPPRESS_TCCL_SWAP) == null);
       
        try {
            // The following call might create a new conversation, as a result, the msg.getConversationID() might
            // return a new value
            ReflectiveInstanceWrapper wrapper = (ReflectiveInstanceWrapper) scopeContainer.getWrapper(contextId);
           
            // If there is a callback interface and the implementation is stateless, we need to
            // inject callbacks at invocation time. For Composite scope, this has already been done.
            if (( interfaze.getCallbackInterface() != null && (scopeContainer.getScope().equals(Scope.STATELESS))){
                // TUSCANY-4000 - injectCallbacks needs the Java callback interface so get it
                //                from the component type just in case the user has specified a
                //                WSDL interface and hence interfaze is WSDL
              injectCallbacks(wrapper, (JavaInterface)service.getService().getInterfaceContract().getCallbackInterface());
            }
           
            final Object instance = wrapper.getInstance();

            // If the method couldn't be computed statically, or the instance being
            // invoked is a user-specified callback object that doesn't implement
            // the service interface from which the reflective method was obtained,
            // compute the method object dynamically for this invocation.
View Full Code Here

        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
       
        try {
            // The following call might create a new conversation, as a result, the msg.getConversationID() might
            // return a new value
            ReflectiveInstanceWrapper wrapper = (ReflectiveInstanceWrapper) scopeContainer.getWrapper(contextId);
           
            // If there is a callback interface and the implementation is stateless, we need to
            // inject callbacks at invocation time. For Composite scope, this has already been done.
            if (( interfaze.getCallbackInterface() != null && (scopeContainer.getScope().equals(Scope.STATELESS))){
              injectCallbacks(wrapper, (JavaInterface)interfaze.getCallbackInterface());
            }
           
            Object instance = wrapper.getInstance();

            // If the method couldn't be computed statically, or the instance being
            // invoked is a user-specified callback object that doesn't implement
            // the service interface from which the reflective method was obtained,
            // compute the method object dynamically for this invocation.
View Full Code Here

        boolean swapTCCL = (msg.getHeaders().get(Constants.SUPPRESS_TCCL_SWAP) == null);
       
        try {
            // The following call might create a new conversation, as a result, the msg.getConversationID() might
            // return a new value
            ReflectiveInstanceWrapper wrapper = (ReflectiveInstanceWrapper) scopeContainer.getWrapper(contextId);
           
            // If there is a callback interface and the implementation is stateless, we need to
            // inject callbacks at invocation time. For Composite scope, this has already been done.
            if (( interfaze.getCallbackInterface() != null && (scopeContainer.getScope().equals(Scope.STATELESS))){
                // TUSCANY-4000 - injectCallbacks needs the Java callback interface so get it
                //                from the component type just in case the user has specified a
                //                WSDL interface and hence interfaze is WSDL
              injectCallbacks(wrapper, (JavaInterface)service.getService().getInterfaceContract().getCallbackInterface());
            }
           
            final Object instance = wrapper.getInstance();

            // If the method couldn't be computed statically, or the instance being
            // invoked is a user-specified callback object that doesn't implement
            // the service interface from which the reflective method was obtained,
            // compute the method object dynamically for this invocation.
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.