Class ClasspathResourceLoader

    • Constructor Detail

      • ClasspathResourceLoader

        @Deprecated
        public ClasspathResourceLoader()
        Deprecated.
        You should not use this ctor, because it uses the thread's context class loader, which is bad programming style. Please specify a reference class or a ClassLoader instead.
        Creates an instance using the context classloader to load resources and classes. Resource paths must be absolute.
        See Also:
        ClasspathResourceLoader(ClassLoader), ClasspathResourceLoader(Class)
      • ClasspathResourceLoader

        public ClasspathResourceLoader​(ClassLoader loader)
        Creates an instance using the given classloader to load Resources and classes. Resource paths must be absolute.
      • ClasspathResourceLoader

        public ClasspathResourceLoader​(Class<?> clazz)
        Creates an instance using the context classloader to load Resources and classes Resources are resolved relative to the given class, if path is not absolute.