Examples of SharedLibrary


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

            // create the classloader
            List<ClassLoader> parents = new ArrayList<ClassLoader>();
            parents.add(getParentClassLoader(applicationContext));
            for (String library : sls) {
                SharedLibrary sl = container.getRegistry().getSharedLibrary(library);
                if (sl == null) {
                    throw new IllegalStateException("No such shared library: " + library);
                }
                parents.add(sl.getClassLoader());
            }
            for (String component : components) {
                ComponentMBeanImpl componentMBean = container.getRegistry().getComponent(component);
                if (componentMBean == null) {
                    throw new IllegalStateException("No such component: " + componentMBean);
View Full Code Here

Examples of org.servicemix.jbi.deployment.SharedLibrary

        String result = "";
        try {
            File tmpDir = AutoDeploymentService.unpackLocation(environmentContext.getTmpDir(), aSharedLibURI);
            if (tmpDir != null) {
                Descriptor root = AutoDeploymentService.buildDescriptor(tmpDir);
                SharedLibrary sl = root.getSharedLibrary();
                if (sl != null) {
                    result = doInstallSharedLibrary(tmpDir, sl);
                }
            }
            else {
View Full Code Here

Examples of org.servicemix.jbi.deployment.SharedLibrary

            if (files != null) {
                for (int i = 0;i < files.length;i++) {
                    if (files[i].isDirectory()) {
                        Descriptor root = AutoDeploymentService.buildDescriptor(files[i]);
                        if (root != null) {
                            SharedLibrary sl = root.getSharedLibrary();
                            if (sl != null) {
                                try {
                                    classLoaderService.addSharedLibrary(files[i], sl);
                                }
                                catch (MalformedURLException e) {
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.