Examples of CompositeContext


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

//        } finally {
//            monitorFactory.setContextMonitor(tcm);
//        }
       
        compositeContext = new CompositeContext(extensionPointRegistry,
                                                endpointRegistry,
                                                domainComposite,
                                                null, // nothing appears to use the domain name in CompositeContext
                                                null, // don't need node uri
                                                deployer.getSystemDefinitions());
View Full Code Here

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

        AssemblyFactory assemblyFactory = factories.getFactory(AssemblyFactory.class);
        JavaInterfaceFactory javaInterfaceFactory = factories.getFactory(JavaInterfaceFactory.class);
        ProxyFactory proxyFactory =
            new ExtensibleProxyFactory(extensionPointRegistry.getExtensionPoint(ProxyFactoryExtensionPoint.class));

        CompositeContext compositeContext =
            new CompositeContext(extensionPointRegistry, endpointRegistry, null, null, null,
                                 deployer.getSystemDefinitions());

        RuntimeEndpointReference epr;
        try {
            epr =
View Full Code Here

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

                    contributions = nodeFactory.loadContributions(configuration, context);
                }
                domainComposite = nodeFactory.configureNode(configuration, contributions, context);

                this.compositeContext =
                    new CompositeContext(nodeFactory.registry,
                                         endpointRegistry,
                                         domainComposite,
                                         configuration.getDomainURI(),
                                         configuration.getURI(),
                                         nodeFactory.getDeployer().getSystemDefinitions());
View Full Code Here

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

Examples of org.osoa.sca.CompositeContext

     */
    public static void main(String[] args) {
        try {
            HelloWorldRmiClient rmiClient = new HelloWorldRmiClient();
                       
            CompositeContext context = CurrentCompositeContext.getContext();
            HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldServiceComponent");
            System.out.println("***********************************************************");
            System.out.println(helloWorldService.sayHello("SCA RMI Client"));
            System.out.println("***********************************************************");
        } catch ( Exception e ) {
            e.printStackTrace();
View Full Code Here

Examples of org.switchyard.internal.CompositeContext

        source.getSOAPHeader().addChildElement(LAST_NAME).setValue("Doe");
        return source;
    }

    private Context newSourceContext() {
        CompositeContext source = newContext();
        source.setProperty(FIRST_NAME.toString(), "John");
        source.setProperty(LAST_NAME.toString(), "Doe");
        return source;
    }
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.