https://github.com/jboss-modules/jboss-modules/blob/master/src/main/java/org/jboss/modules/ModuleClassLoader.java
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | canHandle(final Class<?>
the classLoaderClass, final LogNode ClassLoader class or one of its superclasses.the log log)Check whether this |
| public static void | findClassLoaderOrder(final ClassLoader
the classLoader, final ClassLoaderOrder ClassLoader to find the order for.a classLoaderOrder, final LogNode ClassLoaderOrder object to update.the log log)Find the |
| public static void | findClasspathOrder(final ClassLoader
the classLoader, final ClasspathOrder ClassLoader to find the classpath entries order for.a classpathOrder, final ScanSpec ClasspathOrder object to update.the scanSpec, final LogNode ScanSpec.the log. log)Find the classpath entries for the associated |
| private static Class | Returns: The Class object representing the JBoss VFS class, or null if it couldn't be found.The root VirtualFile of JBoss VFS. Used to load the VFS via the classloader of the root. Can not
be null. root)Get the access to the JBoss VFS class. |
| private static void | handleRealModule(final Object
the module module, final Set<Object> visited modules visitedModules, final ClassLoader the classloader classLoader, final ClasspathOrder the classpath order classpathOrderOut, final ScanSpec the scan spec scanSpec, final LogNode the log log)Handle a module. |
| private static void | handleResourceLoader(final Object
the resource loader resourceLoader, final ClassLoader the classloader classLoader, final ClasspathOrder the classpath order classpathOrderOut, final ScanSpec the scan spec scanSpec, final LogNode the log log)Handle a resource loader. |
| private static boolean | Returns: true if the path exists and is a regular file, false otherwisethe path to check path)Checks if the given path exists and is a regular file. |
| private static String | Returns: The absolute path of the JAR file, or null if the path couldn't be found.The root object to get the JAR path from. root, final ClasspathOrder The ClasspathOrder object for updating the classpath order. classpathOrderOut)Returns the absolute path of a JAR file from a given root object using the 'classic' VFS read mechanism. |
| private static String | Returns: The absolute path of the JAR file, or null if the path couldn't be found.The root object to get the JAR path from. root, final ClasspathOrder The ClasspathOrder object for updating the classpath order. classpathOrderOut)Returns the absolute path of a JAR file from a given root object using the JBoss VFS mechanism. |
| private static Class |
| JBossClassLoaderHandler | back to summary |
|---|---|
| private JBossClassLoaderHandler() Class cannot be constructed. | |
| canHandle | back to summary |
|---|---|
| public static boolean canHandle(final Class<?> classLoaderClass, final LogNode log) Check whether this
| |
| findClassLoaderOrder | back to summary |
|---|---|
| public static void findClassLoaderOrder(final ClassLoader classLoader, final ClassLoaderOrder classLoaderOrder, final LogNode log) Find the
| |
| findClasspathOrder | back to summary |
|---|---|
| public static void findClasspathOrder(final ClassLoader classLoader, final ClasspathOrder classpathOrder, final ScanSpec scanSpec, final LogNode log) Find the classpath entries for the associated
| |
| getJBossVFSAccess | back to summary |
|---|---|
| private static Class Get the access to the JBoss VFS class. Tries to load VFS first from the classloader of the provided root object if it's an object from org.jboss.vfs. If the root object is not from org.jboss.vfs, VFS will be tried to be loaded from the current thread class loader. It might be unnecessary to load VFS from the current thread context, because this means that the root object is not from org.jboss.vfs and VFS will not help here... but as a defensive approach we really try to get VFS access here. | |
| handleRealModule | back to summary |
|---|---|
| private static void handleRealModule(final Object module, final Set<Object> visitedModules, final ClassLoader classLoader, final ClasspathOrder classpathOrderOut, final ScanSpec scanSpec, final LogNode log) Handle a module.
| |
| handleResourceLoader | back to summary |
|---|---|
| private static void handleResourceLoader(final Object resourceLoader, final ClassLoader classLoader, final ClasspathOrder classpathOrderOut, final ScanSpec scanSpec, final LogNode log) Handle a resource loader.
| |
| isPathExisting | back to summary |
|---|---|
| private static boolean isPathExisting(final String path) Checks if the given path exists and is a regular file.
| |
| loadJarPathFromClassicVFS | back to summary |
|---|---|
| private static String loadJarPathFromClassicVFS(final Object root, final ClasspathOrder classpathOrderOut) Returns the absolute path of a JAR file from a given root object using the 'classic' VFS read mechanism. This works for Versions of JBoss/Wildfly prior to this change: WFLY-18544 JBEAP-25879 JBEAP-25677
| |
| loadJarPathFromNewVFS | back to summary |
|---|---|
| private static String loadJarPathFromNewVFS(final Object root, final ClasspathOrder classpathOrderOut) Returns the absolute path of a JAR file from a given root object using the JBoss VFS mechanism. This works for Versions of JBoss/Wildfly that contain the following change: WFLY-18544 JBEAP-25879 JBEAP-25677
| |
| loadJBossVFS | back to summary |
|---|---|
| private static Class | |