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

Examples of org.apache.tuscany.sca.core.context.CompositeContext


    /**
     * @throws IOException
     */
    private synchronized void resolve() throws Exception {
        if ((scdl != null || xmlReader != null) && component == null && reference == null) {
            CompositeContext componentContextHelper = CompositeContext.getCurrentCompositeContext();
            if (componentContextHelper != null) {
                this.compositeActivator = CompositeContext.getCurrentCompositeActivator();
                this.conversationManager = componentContextHelper.getConversationManager();
                Component c;
                if (xmlReader != null) {
                    c = componentContextHelper.fromXML(xmlReader);
                    xmlReader = null; // OK to GC this now
                } else {
                    c = componentContextHelper.fromXML(scdl);
                    scdl = null; // OK to GC this now
                }
                this.component = (RuntimeComponent)c;
                compositeActivator.configureComponentContext(this.component);
                this.reference = (RuntimeComponentReference)c.getReferences().get(0);
View Full Code Here


    /**
     * @throws IOException
     */
    private synchronized void resolve() throws Exception {
        if ((scdl != null || xmlReader != null) && component == null && reference == null) {
            CompositeContext componentContextHelper = CompositeContext.getCurrentCompositeContext();
            if (componentContextHelper != null) {
                this.compositeActivator = CompositeContext.getCurrentCompositeActivator();
                this.conversationManager = componentContextHelper.getConversationManager();
                Component c;
                if (xmlReader != null) {
                    c = componentContextHelper.fromXML(xmlReader);
                    xmlReader = null; // OK to GC this now
                } else {
                    c = componentContextHelper.fromXML(scdl);
                    scdl = null; // OK to GC this now
                }
                this.component = (RuntimeComponent)c;
                compositeActivator.configureComponentContext(this.component);
                this.reference = (RuntimeComponentReference)c.getReferences().get(0);
View Full Code Here

     */
// TODO - EPR all needs sorting out for endpoint references
   
    private synchronized void resolve() throws Exception {
        if ((scdl != null || xmlReader != null) && component == null && reference == null) {
            CompositeContext componentContextHelper = CompositeContext.getCurrentCompositeContext();
            if (componentContextHelper != null) {
                this.compositeActivator = CompositeContext.getCurrentCompositeActivator();
                this.conversationManager = componentContextHelper.getConversationManager();
                Component c;
                if (xmlReader != null) {
                    c = componentContextHelper.fromXML(xmlReader);
                    xmlReader = null; // OK to GC this now
                } else {
                    c = componentContextHelper.fromXML(scdl);
                    scdl = null; // OK to GC this now
                }
                this.component = (RuntimeComponent)c;
                compositeActivator.configureComponentContext(this.component);
                this.reference = (RuntimeComponentReference)c.getReferences().get(0);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.context.CompositeContext

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.