Package org.servicemix.components.util

Examples of org.servicemix.components.util.ComponentAdaptor


     * @return the Component
     */
    public Object getBean(String id) {
        Object bean = getComponent(id);
        if (bean instanceof ComponentAdaptor) {
            ComponentAdaptor adaptor = (ComponentAdaptor) bean;
            return adaptor.getLifeCycle();
        }
        return bean;
    }
View Full Code Here


     * @param lifeCycle
     * @param activationSpec
     * @return Component
     */
    protected Component createComponentAdaptor(ComponentLifeCycle lifeCycle, ActivationSpec activationSpec) {
        ComponentAdaptor answer = null;
        if (lifeCycle instanceof MessageExchangeListener) {
            answer = new ComponentAdaptorMEListener(lifeCycle, activationSpec.getService(), activationSpec
                    .getEndpoint(), (MessageExchangeListener) lifeCycle);
        }
        else {
            answer = new ComponentAdaptor(lifeCycle, activationSpec.getService(), activationSpec.getEndpoint());
        }
        answer.setServiceManager(serviceManager);
        return answer;
    }
View Full Code Here

TOP

Related Classes of org.servicemix.components.util.ComponentAdaptor

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.