Examples of ComponentContextImpl


Examples of org.apache.servicemix.jbi.framework.ComponentContextImpl

            }
            theEndpoint = ep;
        }

        // get the context which created the exchange
        ComponentContextImpl context = exchange.getSourceContext();
        if (theEndpoint == null) {
            QName serviceName = exchange.getService();
            QName interfaceName = exchange.getInterfaceName();

            // check in order, ServiceName then InterfaceName
View Full Code Here

Examples of org.apache.servicemix.jbi.framework.ComponentContextImpl

        return container;
    }
   
    public void register(Component component) throws Exception {
        ComponentNameSpace cns = new ComponentNameSpace(container.getName(), component.getName());
        ComponentContextImpl context = new ComponentContextImpl(container, cns);
        ComponentEnvironment env = new ComponentEnvironment();
        env.setComponentRoot(new File(component.getRootDir()));
        env.setInstallRoot(new File(component.getInstallDir()));
        env.setWorkspaceRoot(new File(component.getWorkDir()));
        context.setEnvironment(env);
       
        container.activateComponent(null,
                                    component.getComponent(),
                                    component.getDescription(),
                                    context,
View Full Code Here

Examples of org.apache.servicemix.jbi.runtime.impl.ComponentContextImpl

        ep.setService(new QName("uri:foo", "bar"));
        ep.setEndpoint("ep");
        ep.setTarget(new ExchangeTarget());
        ep.getTarget().setService(new QName("target"));
        eip.setEndpoints(new EIPEndpoint[] { ep });
        eip.init(new ComponentContextImpl(reg, new SimpleComponentWrapper(eip), new HashMap()));
        eip.getLifeCycle().start();

        Channel channel = smx.createChannel();
        Exchange e = channel.createExchange(Pattern.InOnly);
        e.getIn().setBody("<hello/>");
View Full Code Here

Examples of org.apache.servicemix.jbi.runtime.impl.ComponentContextImpl

        ep.setService(new QName("uri:foo", "bar"));
        ep.setEndpoint("ep");
        ep.setTarget(new ExchangeTarget());
        ep.getTarget().setService(new QName("target"));
        eip.setEndpoints(new EIPEndpoint[] { ep });
        eip.init(new ComponentContextImpl(reg, new SimpleComponentWrapper(eip), new HashMap()));
        eip.getLifeCycle().start();

        Channel channel = smx.createChannel();
        Exchange e = channel.createExchange(Pattern.InOnly);
        e.getIn().setBody("<hello/>");
View Full Code Here

Examples of org.apache.servicemix.jbi.runtime.impl.ComponentContextImpl

        ep.setService(new QName("uri:foo", "bar"));
        ep.setEndpoint("ep");
        ep.setTarget(new ExchangeTarget());
        ep.getTarget().setService(new QName("target"));
        eip.setEndpoints(new EIPEndpoint[] { ep });
        eip.init(new ComponentContextImpl(reg, null, null, eip, new HashMap()));
        eip.getLifeCycle().start();

        Channel channel = smx.createChannel();
        Exchange e = channel.createExchange(Pattern.InOnly);
        e.getIn().setBody("<hello/>");
View Full Code Here

Examples of org.apache.tuscany.sca.core.component.ComponentContextImpl

    public JavaComponentInfo(RuntimeComponent component, PojoConfiguration configuration,
                             DataBindingExtensionPoint dataBindingExtensionPoint,
                             JavaPropertyValueObjectFactory propertyValueObjectFactory) {
        super();
        this.configuration = configuration;
        componentContext = new ComponentContextImpl(this);
        this.groupId = configuration.getGroupId();
        this.component = component;
        this.proxyService = configuration.getProxyFactory();
        this.dataBindingRegistry = dataBindingExtensionPoint;
        this.propertyValueFactory = propertyValueObjectFactory;
View Full Code Here

Examples of org.apache.tuscany.sca.core.component.ComponentContextImpl

    public JavaComponentInfo(RuntimeComponent component, PojoConfiguration configuration,
                             DataBindingExtensionPoint dataBindingExtensionPoint,
                             JavaPropertyValueObjectFactory propertyValueObjectFactory) {
        super();
        this.configuration = configuration;
        componentContext = new ComponentContextImpl(this);
        this.groupId = configuration.getGroupId();
        this.component = component;
        this.proxyService = configuration.getProxyFactory();
        this.dataBindingRegistry = dataBindingExtensionPoint;
        this.propertyValueFactory = propertyValueObjectFactory;
View Full Code Here

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

    /**
     * @param runtimeComponent
     */
    public void configureComponentContext(RuntimeComponent runtimeComponent) {
        RuntimeComponentContext componentContext =
            new ComponentContextImpl(this, assemblyFactory, proxyFactory, interfaceContractMapper,
                                     requestContextFactory, javaInterfaceFactory, runtimeComponent);
        runtimeComponent.setComponentContext(componentContext);
    }
View Full Code Here

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

        }

        // We need to set the PropertyValueFactory on the ComponentContextImpl
        // so the ComponentContext can "de-marshal" the property type to a value
        // when the getProperty() method is called
        ComponentContextImpl ccImpl = (ComponentContextImpl)component.getComponentContext();
        ccImpl.setPropertyValueFactory(propertyValueFactory);

        //setUpPolicyHandlers();
    }
View Full Code Here

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

    /**
     * @param runtimeComponent
     */
    public void configureComponentContext(RuntimeComponent runtimeComponent) {
        RuntimeComponentContext componentContext =
            new ComponentContextImpl(this, assemblyFactory, proxyFactory, interfaceContractMapper,
                                     requestContextFactory, javaInterfaceFactory, runtimeComponent);
        runtimeComponent.setComponentContext(componentContext);
    }
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.