Package javax.jbi.component

Examples of javax.jbi.component.ServiceUnitManager.undeploy()


            // now get the component and give it a SA
            Component component = container.getComponent(componentName);
            if (component != null) {
                ServiceUnitManager sum = component.getServiceUnitManager();
                if (sum != null) {
                    sum.undeploy(name, targetDir.getAbsolutePath());
                    FileUtil.deleteFile(targetDir);
                }
            }
            else {
                FileUtil.deleteFile(targetDir);
View Full Code Here


            throw new RuntimeException("no appropriate service :(");
        }
        ServiceUnitManager suM = ((Component) context.getService(refs[0]))
                .getServiceUnitManager();
        suM.shutDown(generatedName);
        suM.undeploy(generatedName, rootDir.getAbsolutePath());

    }

    public class BundleClassLoader extends ClassLoader {
        private final Bundle delegate;
View Full Code Here

            Component componentGBean = getComponentGBean(
                    reference.getAssocialtedServiceUnitName().getArtifactId(),
                    reference.getAssocialtedServiceUnitName());
            ServiceUnitManager serviceUnitManager =
                componentGBean.getComponent().getServiceUnitManager();
            serviceUnitManager.undeploy(reference.getServiceUnitName(),
                    reference.getServiceUnitPath());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

            ServiceUnitManager sum = component.getServiceUnitManager();
            if (sum != null) {
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                try {
                    Thread.currentThread().setContextClassLoader(component.getComponent().getClass().getClassLoader());
                    sum.undeploy(name, targetDir.getAbsolutePath());
                } finally {
                    Thread.currentThread().setContextClassLoader(cl);
                }
                FileUtil.deleteFile(targetDir);
            }
View Full Code Here

            Component componentGBean = getComponentGBean(
                    reference.getAssocialtedServiceUnitName().getArtifactId(),
                    reference.getAssocialtedServiceUnitName());
            ServiceUnitManager serviceUnitManager =
                componentGBean.getComponent().getServiceUnitManager();
            serviceUnitManager.undeploy(reference.getServiceUnitName(),
                    reference.getServiceUnitPath());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

            ServiceUnitManager sum = component.getServiceUnitManager();
            if (sum != null) {
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                try {
                    Thread.currentThread().setContextClassLoader(component.getComponent().getClass().getClassLoader());
                    sum.undeploy(name, targetDir.getAbsolutePath());
                } finally {
                    Thread.currentThread().setContextClassLoader(cl);
                }
                FileUtil.deleteFile(targetDir);
            }
View Full Code Here

            throw new RuntimeException("no appropriate service :(");
        }
        ServiceUnitManager suM = ((Component) context.getService(refs[0]))
                .getServiceUnitManager();
        suM.shutDown(generatedName);
        suM.undeploy(generatedName, rootDir.getAbsolutePath());

    }

    public class BundleClassLoader extends ClassLoader {
        private final Bundle delegate;
View Full Code Here

            ServiceUnitManager sum = component.getServiceUnitManager();
            if (sum != null) {
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                try {
                    Thread.currentThread().setContextClassLoader(component.getComponent().getClass().getClassLoader());
                    sum.undeploy(name, targetDir.getAbsolutePath());
                } finally {
                    Thread.currentThread().setContextClassLoader(cl);
                }
                FileUtil.deleteFile(targetDir);
            }
View Full Code Here

            ServiceUnitManager sum = component.getServiceUnitManager();
            if (sum != null) {
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                try {
                    Thread.currentThread().setContextClassLoader(component.getComponent().getClass().getClassLoader());
                    sum.undeploy(name, targetDir.getAbsolutePath());
                } finally {
                    Thread.currentThread().setContextClassLoader(cl);
                }
                FileUtil.deleteFile(targetDir);
            }
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.