@Override
        @SuppressWarnings("unchecked")
        public <T> T adapt(Class<T> clazz) {
            if (clazz.equals(BundleRevision.class)) {
                return (T) new BundleRevisionImpl();
            } else if (clazz.equals(BundleWiring.class)) {
                return (T) new BundleWiringImpl();
            } else {
                return null;
            }
        }
A (mock) OSGI implementation which loads classes from the system classpath

@author Tony Vaagenes
@author ollivir
standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java