ModuleClassLoader to only expose public classes.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final URL[] | |
| private ModuleClassLoader | |
| private HashSet | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected Class | findClass(String name)
Overrides java. Finds and loads the class with the specified name from the URL search path. |
| public URL | findResource(String name)
Overrides java. Finds the resource with the specified name on the URL search path. |
| pack-priv URL | findResourceDirect(String name)
Works like |
| public Enumeration | findResources(String name)
Overrides java. Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name. |
| pack-priv Class | getClass(String name)
Tries to find a class from the |
| public String[] | |
| pack-priv boolean | |
| public final void | |
| public void | |
| public String |
| classesLoaded | back to summary |
|---|---|
| private int classesLoaded | |
| EMPTY_URLS | back to summary |
|---|---|
| private static final URL[] EMPTY_URLS | |
| privateLoader | back to summary |
|---|---|
| private ModuleClassLoader privateLoader | |
| publicPkgs | back to summary |
|---|---|
| private HashSet<String> publicPkgs | |
| publicSet | back to summary |
|---|---|
| private ArrayList<String> publicSet | |
| ClassLoaderFacade | back to summary |
|---|---|
| public ClassLoaderFacade(ModuleClassLoader privateLoader) Creates a new instance of ClassLoaderFacade | |
| dumpState | back to summary |
|---|---|
| public void dumpState(PrintStream writer) | |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Finds and loads the class with the specified name from the URL search path. Any URLs referring to JAR files are loaded and opened as needed until the class is found.
| |
| findResource | back to summary |
|---|---|
| public URL findResource(String name) Overrides java. Doc from java. Finds the resource with the specified name on the URL search path. | |
| findResourceDirect | back to summary |
|---|---|
| pack-priv URL findResourceDirect(String name) Works like | |
| findResources | back to summary |
|---|---|
| public Enumeration Overrides java. Doc from java. Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.
| |
| getClass | back to summary |
|---|---|
| pack-priv Class Tries to find a class from the | |
| getPublicPkgs | back to summary |
|---|---|
| public String[] getPublicPkgs() | |
| matchExportedPackage | back to summary |
|---|---|
| pack-priv boolean matchExportedPackage(String name) | |
| registerStopEvent | back to summary |
|---|---|
| public final void registerStopEvent() | |
| setPublicPkgs | back to summary |
|---|---|
| public void setPublicPkgs(String[] publicPkgs) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final ModuleClassLoader |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| moduleClassLoader | back to summary |
|---|---|
| private final ModuleClassLoader moduleClassLoader | |
| FacadeCleaner | back to summary |
|---|---|
| pack-priv FacadeCleaner(ModuleClassLoader moduleClassLoader) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |