Package org.apache.servicemix.jbi.container

Examples of org.apache.servicemix.jbi.container.SpringServiceUnitContainer


    }

    protected List getServices(Kernel kernel) {
        try {
            Object jbi = kernel.getService(new StringServiceName("jbi"));
            SpringServiceUnitContainer suContainer = (SpringServiceUnitContainer) jbi;
            ActivationSpec[] specs = suContainer.getActivationSpecs();
            List services = new ArrayList();
            if (specs != null) {
                for (int i = 0; i < specs.length; i++) {
                    services.add(new LwContainerEndpoint(specs[i]));
                }
            }
            if (suContainer.getComponents() != null || suContainer.getEndpoints() != null
                    || suContainer.getListeners() != null || suContainer.getServices() != null) {
                services.add(new LwContainerExtra(suContainer.getComponents(), suContainer.getEndpoints(),
                                                  suContainer.getListeners(), suContainer.getServices()));
            }
            return services;
        } catch (Exception e) {
            throw new RuntimeException("Can not find 'jbi' bean", e);
        }
View Full Code Here


    }

    protected List getServices(Kernel kernel) {
        try {
            Object jbi = kernel.getService(new StringServiceName("jbi"));
            SpringServiceUnitContainer suContainer = (SpringServiceUnitContainer) jbi;
            ActivationSpec[] specs = suContainer.getActivationSpecs();
            List services = new ArrayList();
            for (int i = 0; i < specs.length; i++) {
                services.add(new LwContainerEndpoint(specs[i]));
            }
            return services;
View Full Code Here

TOP

Related Classes of org.apache.servicemix.jbi.container.SpringServiceUnitContainer

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.