Examples of ComponentContextImpl


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

        this.eprBinder = utilities.getUtility(EndpointReferenceBinder.class);
        this.proxyFactory = ExtensibleProxyFactory.getInstance(registry);
    }

    public ComponentContext createComponentContext(CompositeContext compositeContext, RuntimeComponent component) {
        return new ComponentContextImpl(registry, assemblyFactory, javaInterfaceFactory, compositeActivator,
                                        requestContextFactory, propertyFactory, eprBinder, proxyFactory,
                                        compositeContext, component);
    }
View Full Code Here

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

    public DefaultComponentContextFactory(ExtensionPointRegistry registry) {
        this.registry = registry;
    }

    public ComponentContext createComponentContext(RuntimeComponent component) {
        return new ComponentContextImpl(registry, component);
    }
View Full Code Here

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

    public DefaultComponentContextFactory(ExtensionPointRegistry registry) {
        this.registry = registry;
    }

    public ComponentContext createComponentContext(CompositeContext compositeContext, RuntimeComponent component) {
        return new ComponentContextImpl(registry, compositeContext, component);
    }
View Full Code Here

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

        this.eprBinder = utilities.getUtility(EndpointReferenceBinder.class);
        this.proxyFactory = ExtensibleProxyFactory.getInstance(registry);
    }

    public ComponentContext createComponentContext(CompositeContext compositeContext, RuntimeComponent component) {
        return new ComponentContextImpl(registry, assemblyFactory, javaInterfaceFactory, compositeActivator,
                                        requestContextFactory, propertyFactory, eprBinder, proxyFactory,
                                        compositeContext, component);
    }
View Full Code Here

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

    public DefaultComponentContextFactory(ExtensionPointRegistry registry) {
        this.registry = registry;
    }

    public ComponentContext createComponentContext(RuntimeComponent component) {
        return new ComponentContextImpl(registry, component);
    }
View Full Code Here

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

    public DefaultComponentContextFactory(ExtensionPointRegistry registry) {
        this.registry = registry;
    }

    public ComponentContext createComponentContext(CompositeContext compositeContext, RuntimeComponent component) {
        return new ComponentContextImpl(registry, compositeContext, component);
    }
View Full Code Here

Examples of org.mule.jbi.framework.ComponentContextImpl

    this.context = context;
    this.component = component;
  }
 
  public synchronized void init() throws JBIException {
    ComponentContextImpl context = new ComponentContextImpl(this.context, this.component,
                JbiContainer.Factory.getInstance().getEndpoints());
    ((Component)component.getComponent()).getLifeCycle().init(context);
  }
View Full Code Here

Examples of org.servicemix.jbi.framework.ComponentContextImpl

    protected void init() throws JBIException {
        if (timer == null) {
            timer = new Timer(true);
        }
        if (workManager == null) {
            ComponentContextImpl context = (ComponentContextImpl) getContext();
            workManager = context.getWorkManager();
        }
        super.init();
      
    }
View Full Code Here

Examples of org.servicemix.jbi.framework.ComponentContextImpl

     * @throws JBIException
     */
    public ObjectName activateComponent(Component component, String description, ActivationSpec activationSpec,
                                        boolean pojo, boolean binding, boolean service) throws JBIException {
        ComponentNameSpace cns = new ComponentNameSpace(getName(), activationSpec.getComponentName(), activationSpec.getId());
        ComponentContextImpl context = new ComponentContextImpl(this, cns);
        return activateComponent(new File("."), component, description, context, activationSpec, pojo, binding, service);
    }
View Full Code Here

Examples of org.servicemix.jbi.framework.ComponentContextImpl

            if (throwException) {
                throw new MessagingException("Could not find route for exchange: " + exchange + " for service: " + exchange.getService() + " and interface: "
                        + exchange.getInterfaceName());
            } else if (exchange.getMirror().getSyncState() == MessageExchangeImpl.SYNC_STATE_SYNC_SENT) {
                exchange.handleAccept();
                ComponentContextImpl ctx = (ComponentContextImpl) getSubscriptionManager().getContext();
                exchange.setDestinationId(ctx.getComponentNameSpace());
                // TODO: this will fail if exchange is InOut
                getSubscriptionManager().done(exchange);
            }
        }
    }
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.