Interface ResourceLoader

  • All Known Implementing Classes:
    ClasspathResourceLoader

    public interface ResourceLoader
    Abstraction for loading resources (streams, files, and classes).
    • Method Detail

      • findClass

        <T> Class<? extends T> findClass​(String cname,
                                         Class<T> expectedType)
        Finds class of the name and expected type
      • newInstance

        <T> T newInstance​(String cname,
                          Class<T> expectedType)
        Creates an instance of the name and expected type