Package org.osgi.framework

Examples of org.osgi.framework.BundleReference


        // [ARQ-459] Allow TestRunner to TestEnricher communication
        BundleContext bundleContext = BundleContextAssociation.getBundleContext();
        if (bundleContext == null) {
            ClassLoader classLoader = BundleContextProvider.class.getClassLoader();
            if (classLoader instanceof BundleReference) {
                BundleReference bref = (BundleReference) classLoader;
                bundleContext = bref.getBundle().getBundleContext();
                bundleContext = bundleContext.getBundle(0).getBundleContext();
            }
        }
        return bundleContext;
    }
View Full Code Here


        // [ARQ-459] Allow TestRunner to TestEnricher communication
        Bundle bundle = BundleAssociation.getBundle();
        if (bundle == null) {
            ClassLoader classLoader = testCase.getClass().getClassLoader();
            if (classLoader instanceof BundleReference) {
                BundleReference bref = (BundleReference) classLoader;
                bundle = bref.getBundle();
            }
        }
        return bundle;
    }
View Full Code Here

TOP

Related Classes of org.osgi.framework.BundleReference

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.