Utility class for building class loaders for Catalina. The factory method requires the following parameters in order to build a new class loader (with suitable defaults in all cases):
ClassLoader instance that should become the parent of the new class loader.| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static URL | |
| private static URL | |
| public static ClassLoader | Returns: the new class loaderArray of pathnames to unpacked directories that should be added to the repositories of the class
loader, or unpacked, File[] null for no unpacked directories to be consideredArray of pathnames to directories containing JAR files that should be added to the repositories
of the class loader, or packed, final ClassLoader null for no directories of JAR files to be consideredParent class loader for the new class loader, or parent)null for the system class loader.Create and return a new class loader, based on the configuration defaults and the specified directory paths: |
| public static ClassLoader | Returns: the new class loaderList of class directories, jar files, jar directories or URLS that should be added to the
repositories of the class loader. repositories,Parent class loader for the new class loader, or parent)null for the system class
loader.Create and return a new class loader, based on the configuration defaults and the specified directory paths: |
| private static boolean |
| log | back to summary |
|---|---|
| private static final Log log | |
| ClassLoaderFactory | back to summary |
|---|---|
| public ClassLoaderFactory() | |
| buildClassLoaderUrl | back to summary |
|---|---|
| private static URL buildClassLoaderUrl(String urlString) throws MalformedURLException, URISyntaxException | |
| buildClassLoaderUrl | back to summary |
|---|---|
| private static URL buildClassLoaderUrl(File file) throws MalformedURLException, URISyntaxException | |
| createClassLoader | back to summary |
|---|---|
| public static ClassLoader createClassLoader(File[] unpacked, File[] packed, final ClassLoader parent) throws Exception Create and return a new class loader, based on the configuration defaults and the specified directory paths:
| |
| createClassLoader | back to summary |
|---|---|
| public static ClassLoader createClassLoader(List<ClassLoaderFactory. Create and return a new class loader, based on the configuration defaults and the specified directory paths:
| |
| validateFile | back to summary |
|---|---|
| private static boolean validateFile(File file, ClassLoaderFactory. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final ClassLoaderFactory. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public ClassLoaderFactory. |
| location | back to summary |
|---|---|
| private final String location | |
| type | back to summary |
|---|---|
| private final ClassLoaderFactory. | |
| Repository | back to summary |
|---|---|
| public Repository(String location, ClassLoaderFactory. | |
| getLocation | back to summary |
|---|---|
| public String getLocation() | |
| getType | back to summary |
|---|---|
| public ClassLoaderFactory. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassLoaderFactory. | |
| public static final ClassLoaderFactory. | |
| public static final ClassLoaderFactory. | |
| public static final ClassLoaderFactory. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassLoaderFactory. | |
| public static ClassLoaderFactory. |
| DIR | back to summary |
|---|---|
| public static final ClassLoaderFactory. | |
| GLOB | back to summary |
|---|---|
| public static final ClassLoaderFactory. | |
| JAR | back to summary |
|---|---|
| public static final ClassLoaderFactory. | |
| URL | back to summary |
|---|---|
| public static final ClassLoaderFactory. | |
| RepositoryType | back to summary |
|---|---|
| private RepositoryType() | |
| valueOf | back to summary |
|---|---|
| public static ClassLoaderFactory. | |
| values | back to summary |
|---|---|
| public static ClassLoaderFactory. | |