Package org.switchyard.component.bean.deploy

Examples of org.switchyard.component.bean.deploy.BeanComponentActivator


        if (beanDeploymentMetaData == null) {
            throw BeanMessages.MESSAGES.failedToLookupBeanDeploymentMetaDataFromNamingContext();
        }

        BeanComponentActivator activator = new BeanComponentActivator();

        for (ServiceDescriptor serviceDescriptor : beanDeploymentMetaData.getServiceDescriptors()) {
            String serviceName = serviceDescriptor.getServiceName();
            ServiceProxyHandler handler = serviceDescriptor.getHandler();
            ServiceInterface serviceInterface;
            ServiceReference service;

            activator.lookupBeanMetaData();
            serviceInterface = activator.buildServiceInterface(serviceName);
            QName serviceQName = XMLHelper.createQName(domain.getName().getNamespaceURI(), serviceName);
            domain.registerService(serviceQName, serviceInterface, handler);
            service = domain.registerServiceReference(serviceQName, serviceInterface);
            handler.addReference(service);
            handler.start();
View Full Code Here

TOP

Related Classes of org.switchyard.component.bean.deploy.BeanComponentActivator

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.