Package org.apache.tuscany.sca.core.context

Examples of org.apache.tuscany.sca.core.context.InstanceWrapper.stop()


                callbackConversations.remove(contextId);
            }

            // stop the component if this removes the last reference
            if (clientConversationId == null && callbackConversations.isEmpty()) {
                ctx.stop();
            }
        }

        private void createInstance(Object contextId) throws TargetResolutionException {
            InstanceWrapper instanceWrapper = createInstanceWrapper();
View Full Code Here


            ctx.start();
        } catch (ThreadDeath td) {
            throw td;
        } catch (Throwable e) {
            try {
                ctx.stop();
            } catch (ThreadDeath td) {
                throw td;
            } catch (Throwable e2) {
            }
            throw new TargetInitializationException(e);
View Full Code Here

                wrappers.put(Thread.currentThread(), ctx);
            } catch (ThreadDeath td) {
                throw td;
            } catch (Throwable e) {
                try {
                    ctx.stop();
                } catch (ThreadDeath td) {
                    throw td;
                } catch (Throwable e2) {
                }
                throw new TargetInitializationException(e);
View Full Code Here

            ctx.start();
        } catch (ThreadDeath td) {
            throw td;
        } catch (Throwable e) {
            try {
                ctx.stop();
            } catch (ThreadDeath td) {
                throw td;
            } catch (Throwable e2) {
            }
            throw new TargetInitializationException(e);
View Full Code Here

                wrappers.put(Thread.currentThread(), ctx);
            } catch (ThreadDeath td) {
                throw td;
            } catch (Throwable e) {
                try {
                    ctx.stop();
                } catch (ThreadDeath td) {
                    throw td;
                } catch (Throwable e2) {
                }
                throw new TargetInitializationException(e);
View Full Code Here

                callbackConversations.remove(contextId);
            }

            // stop the component if this removes the last reference
            if (clientConversationId == null && callbackConversations.isEmpty()) {
                ctx.stop();
            }
        }

        private void createInstance(Object contextId) throws TargetResolutionException {
            InstanceWrapper instanceWrapper = createInstanceWrapper();
View Full Code Here

        }
       
        private void removeInstanceWrapper() throws TargetDestructionException
        {
          InstanceWrapper ctx =  getInstanceWrapper();
          ctx.stop();
          wrappers.remove(this.instanceId);      
        }
       
        private void createInstance() throws TargetResolutionException
        {
View Full Code Here

                callbackConversations.remove(contextId);
            }

            // stop the component if this removes the last reference
            if (clientConversationId == null && callbackConversations.isEmpty()) {
                ctx.stop();
            }
        }

        private void createInstance(Object contextId) throws TargetResolutionException {
            InstanceWrapper instanceWrapper = createInstanceWrapper();
View Full Code Here

                callbackConversations.remove(contextId);
            }

            // stop the component if this removes the last reference
            if (clientConversationId == null && callbackConversations.isEmpty()) {
                ctx.stop();
            }
        }

        private void createInstance(Object contextId) throws TargetResolutionException {
            InstanceWrapper instanceWrapper = createInstanceWrapper();
View Full Code Here

                callbackConversations.remove(contextId);
            }

            // stop the component if this removes the last reference
            if (clientConversationId == null && callbackConversations.isEmpty()) {
                ctx.stop();
            }
        }

        private void createInstance(Object contextId) throws TargetResolutionException {
            InstanceWrapper instanceWrapper = createInstanceWrapper();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.