Examples of DelegatingBundle


Examples of org.apache.xbean.osgi.bundle.util.DelegatingBundle

            return;
        }
        //1. remove the bundle from the parent DelegatingBundle
        Bundle configurationBundle = bundleContext.getBundle();
        if (configurationBundle instanceof DelegatingBundle) {
            DelegatingBundle delegatingBundle = (DelegatingBundle) configurationBundle;
            delegatingBundle.removeBundle(sharedLibBundle);
        }
        //2. unregister the share lib bundle to the share lib bundle extender
        ServiceReference sharedLibExtenderReference = null;
        try {
            sharedLibExtenderReference = bundleContext.getServiceReference(SharedLibExtender.class.getName());
View Full Code Here

Examples of org.apache.xbean.osgi.bundle.util.DelegatingBundle

        this.bundle = configurationData.getBundleContext().getBundle();
       
        if (configurationData.isUseEnvironment() && configurationManager != null) {
            try {
                Collection<Bundle> bundles = getBundles(configurationData, configurationResolver, configurationManager);           
                this.bundle = new DelegatingBundle(bundles);
            } catch (Exception e) {
                log.debug("Failed to identify bundle parents for " + configurationData.getId(), e);
            }
        }
       
View Full Code Here

Examples of org.apache.xbean.osgi.bundle.util.DelegatingBundle

    protected ClassLoader getContextClassLoader() {
        ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
        List<Bundle> bundles = new ArrayList<Bundle>(2);
        bundles.add(BundleUtils.getBundle(contextCL, false));
        bundles.add(BundleUtils.getBundle(RestServlet.class.getClassLoader(), true));
        return new BundleClassLoader(new DelegatingBundle(bundles));
    }
View Full Code Here

Examples of org.apache.xbean.osgi.bundle.util.DelegatingBundle

        this.bundle = configurationData.getBundleContext().getBundle();
       
        if (configurationData.isUseEnvironment() && configurationManager != null) {
            try {
                Collection<Bundle> bundles = getBundles(configurationData, configurationResolver, configurationManager);           
                this.bundle = new DelegatingBundle(bundles);
            } catch (Exception e) {
                log.debug("Failed to identify bundle parents for " + configurationData.getId(), e);
            }
        }
       
View Full Code Here

Examples of org.apache.xbean.osgi.bundle.util.DelegatingBundle

            return;
        }
        //1. remove the bundle from the parent DelegatingBundle
        Bundle configurationBundle = bundleContext.getBundle();
        if (configurationBundle instanceof DelegatingBundle) {
            DelegatingBundle delegatingBundle = (DelegatingBundle) configurationBundle;
            delegatingBundle.removeBundle(sharedLibBundle);
        }
        //2. unregister the share lib bundle to the share lib bundle extender
        ServiceReference sharedLibExtenderReference = null;
        try {
            sharedLibExtenderReference = bundleContext.getServiceReference(SharedLibExtender.class.getName());
View Full Code Here

Examples of org.apache.xbean.osgi.bundle.util.DelegatingBundle

        this.bundle = configurationData.getBundleContext().getBundle();
       
        if (configurationData.isUseEnvironment() && configurationManager != null) {
            try {
                List<Bundle> bundles = getParentBundles(configurationData, configurationResolver, configurationManager);           
                this.bundle = new DelegatingBundle(bundles);
            } catch (Exception e) {
                log.debug("Failed to identify bundle parents for " + configurationData.getId(), 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.