Class ReflectionsWorkaroundClasspathHelper


  • @Deprecated
    public abstract class ReflectionsWorkaroundClasspathHelper
    extends Object
    Deprecated.
    in favor of Quarkus integration in OptaPlanner 8 or Spring Boot starter.
    Workaround for bug in ClasspathHelper. This workaround expires once https://github.com/ronmamo/reflections/pull/118 is fixed.
    • Constructor Detail

      • ReflectionsWorkaroundClasspathHelper

        public ReflectionsWorkaroundClasspathHelper()
        Deprecated.
    • Method Detail

      • contextClassLoader

        public static ClassLoader contextClassLoader()
        Deprecated.
        Gets the current thread context class loader. Thread.currentThread().getContextClassLoader().
        Returns:
        the context class loader, may be null
      • staticClassLoader

        public static ClassLoader staticClassLoader()
        Deprecated.
        Gets the class loader of this library. Reflections.class.getClassLoader().
        Returns:
        the static library class loader, may be null
      • classLoaders

        public static ClassLoader[] classLoaders​(ClassLoader... classLoaders)
        Deprecated.
        Returns an array of class Loaders initialized from the specified array.

        If the input is null or empty, it defaults to both contextClassLoader() and staticClassLoader()

        Returns:
        the array of class loaders, not null
      • forJavaClassPath

        public static Collection<URL> forJavaClassPath()
        Deprecated.
        Returns a distinct collection of URLs based on the java.class.path system property.

        This finds the URLs using the java.class.path system property.

        The returned collection of URLs retains the classpath order.

        Returns:
        the collection of URLs, not null
      • cleanPath

        public static String cleanPath​(URL url)
        Deprecated.
        Cleans the URL.
        Parameters:
        url - the URL to clean, not null
        Returns:
        the path, not null