Examples of CompositeContextImpl


Examples of org.apache.tuscany.core.context.impl.CompositeContextImpl

    /**
     * Tests adding a context before its parent has been started
     */
    public void testRegisterContextBeforeStart() throws Exception {
        EventContext ctx = new EventContextImpl();
        CompositeContext moduleComponentCtx = new CompositeContextImpl();
        moduleComponentCtx.setName("testMC");
        CompositeScopeContext scopeContainer = new CompositeScopeContext(ctx);
        scopeContainer.registerFactory(MockFactory.createCompositeConfiguration("CompositeComponent"));
        scopeContainer.start();
        scopeContainer.onEvent(new ModuleStart(this));
        scopeContainer.getContext("CompositeComponent");
View Full Code Here

Examples of org.apache.tuscany.core.context.impl.CompositeContextImpl

    /**
     * Tests adding a context after its parent has been started
     */
    public void testRegisterContextAfterStart() throws Exception {
        EventContext ctx = new EventContextImpl();
        CompositeContext moduleComponentCtx = new CompositeContextImpl();
        moduleComponentCtx.setName("testMC");
        CompositeScopeContext scopeContainer = new CompositeScopeContext(ctx);
        scopeContainer.start();

        scopeContainer.onEvent(new ModuleStart(this));
        scopeContainer.registerFactory(MockFactory.createCompositeConfiguration("CompositeComponent"));
View Full Code Here

Examples of org.apache.tuscany.core.launcher.CompositeContextImpl

        if (applicationSCDL == null) {
            throw new RuntimeException("application SCDL not found: " + applicationSCDL);
        }
        component = launcher.bootApplication("application", applicationSCDL);
        component.start();
        context = new CompositeContextImpl(component);
        context.start();
    }
View Full Code Here

Examples of org.apache.tuscany.core.launcher.CompositeContextImpl

        if (applicationScdlURL == null) {
            throw new RuntimeException("application SCDL not found: " + applicationSCDL);
        }
        component = launcher.bootApplication("application", applicationScdlURL);
        component.start();
        context = new CompositeContextImpl(component);
        context.start();
    }
View Full Code Here

Examples of org.apache.tuscany.core.launcher.CompositeContextImpl

                getApplicationName(),
                getApplicationScdl(),
                getHostClassLoader());
            application.start();

            context = new CompositeContextImpl(application);
        } catch (Exception e) {
            throw new ServletLauncherInitException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.core.launcher.CompositeContextImpl

                getApplicationName(),
                getApplicationScdl(),
                getApplicationClassLoader());
            application.start();

            context = new CompositeContextImpl(application);
        } catch (LoaderException e) {
            // FIXME do something with this
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.context.impl.CompositeContextImpl

    private final CompositeContext compositeContext;

    private Composite domainComposite;
   
    public CompositeActivatorImpl(ExtensionPointRegistry extensionPoints) {
        this.compositeContext = new CompositeContextImpl(extensionPoints);
        FactoryExtensionPoint factories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class);
        this.assemblyFactory = factories.getFactory(AssemblyFactory.class);
        this.messageFactory = factories.getFactory(MessageFactory.class);
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        this.interfaceContractMapper = utilities.getUtility(InterfaceContractMapper.class);
View Full Code Here

Examples of org.apache.tuscany.sca.core.context.impl.CompositeContextImpl

    private final CompositeContext compositeContext;

    private Composite domainComposite;
   
    public CompositeActivatorImpl2(ExtensionPointRegistry extensionPoints) {
        this.compositeContext = new CompositeContextImpl(extensionPoints);
        FactoryExtensionPoint factories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class);
        this.assemblyFactory = factories.getFactory(AssemblyFactory.class);
        this.messageFactory = factories.getFactory(MessageFactory.class);
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        this.interfaceContractMapper = utilities.getUtility(InterfaceContractMapper.class);
View Full Code Here

Examples of org.apache.tuscany.sca.core.context.impl.CompositeContextImpl

    private Composite domainComposite;

    public CompositeActivatorImpl(ExtensionPointRegistry extensionPoints) {
        this.extensionPoints = extensionPoints;
        this.compositeContext = new CompositeContextImpl(extensionPoints);
        FactoryExtensionPoint factories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class);
        this.assemblyFactory = factories.getFactory(AssemblyFactory.class);
        this.messageFactory = factories.getFactory(MessageFactory.class);
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        this.interfaceContractMapper = utilities.getUtility(InterfaceContractMapper.class);
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.