ClassLoader used to load classes without causing build-time
initialization.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected URL | findResource(String
The resource name name)Overrides java. |
| protected Class | loadClass(String
The binary name of the class name, boolean If resolve)true then resolve the classOverrides java. |
| private Class |
| resourceLoader | back to summary |
|---|---|
| private final ClassLoader resourceLoader | |
| ThrowawayClassLoader | back to summary |
|---|---|
| pack-priv ThrowawayClassLoader(ClassLoader parent) | |
| findResource | back to summary |
|---|---|
| protected URL findResource(String name) Overrides java. Doc from java. Finds the resource with the given name. Class loader implementations should override this method. For resources in named modules then the method must implement the
rules for encapsulation specified in the
| |
| loadClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
If the class was found using the above steps, and the
Subclasses of Unless overridden, this method synchronizes on the result of
| |
| loadClassFromResource | back to summary |
|---|---|
| private Class | |