1 11 12 package org.eclipse.osgi.framework.adaptor; 13 14 import java.io.IOException ; 15 import java.net.URL ; 16 import java.security.ProtectionDomain ; 17 import java.util.Enumeration ; 18 19 34 public interface BundleClassLoader { 35 36 40 public void initialize(); 41 42 48 public URL findLocalResource(String resource); 49 50 57 public Enumeration findLocalResources(String resource); 58 59 66 public Class findLocalClass(String classname) throws ClassNotFoundException ; 67 68 75 public URL getResource(String name); 76 77 84 public Enumeration getResources(String name) throws IOException ; 85 86 94 public Class loadClass(String name) throws ClassNotFoundException ; 95 96 103 public void close(); 104 105 118 public void attachFragment(BundleData bundledata, ProtectionDomain domain, String [] classpath); 119 120 124 public ClassLoaderDelegate getDelegate(); 125 126 130 public ClassLoader getParent(); 131 } 132 | Popular Tags |