1 11 package org.eclipse.core.runtime.adaptor; 12 13 import java.io.IOException ; 14 15 import org.eclipse.osgi.framework.adaptor.BundleProtectionDomain; 16 import org.eclipse.osgi.framework.adaptor.ClassLoaderDelegate; 17 import org.eclipse.osgi.framework.adaptor.core.*; 18 19 26 public class EclipseElementFactory implements AdaptorElementFactory { 27 28 public AbstractBundleData createBundleData(AbstractFrameworkAdaptor adaptor, long id) throws IOException { 29 return new EclipseBundleData((AbstractFrameworkAdaptor) adaptor, id); 30 } 31 32 public org.eclipse.osgi.framework.adaptor.BundleClassLoader createClassLoader(ClassLoaderDelegate delegate, BundleProtectionDomain domain, String [] bundleclasspath, AbstractBundleData data) { 33 return new EclipseClassLoader(delegate, domain, bundleclasspath, data.getAdaptor().getBundleClassLoaderParent(), data); 34 } 35 36 } 37 | Popular Tags |