1 22 package org.jboss.classloading.spi; 23 24 import java.io.IOException ; 25 import java.net.URL ; 26 import java.util.Enumeration ; 27 28 34 public interface DomainClassLoader 35 { 36 41 ClassLoadingDomain getDomain(); 42 43 48 void setDomain(ClassLoadingDomain domain); 49 50 55 public URL [] getClasspath(); 56 57 64 Class loadClass(String name) throws ClassNotFoundException ; 65 66 74 Class loadClassLocally(String name, boolean resolve) throws ClassNotFoundException ; 75 76 82 URL loadResourceLocally(String name); 83 84 91 Enumeration <URL > findResourcesLocally(String name) throws IOException ; 92 93 99 public String [] getPackageNames(); 100 105 Package [] getPackages(); 106 107 113 Package getPackage(String name); 114 } 115 | Popular Tags |