public static ResourceLoader getModuleResourceLoader ( final String rootPath , final String loaderPath , final String loaderName ) { if ( Holder . JAR_FILE != null ) { return new JarFileResourceLoader ( loaderName , Holder . JAR_FILE , Holder . FILE_SYSTEM . getPath ( rootPath , loaderPath ) . toString ( ) ) ; } return ResourceLoaders . createFileResourceLoader ( loaderPath , new File ( rootPath ) ) ; }
Creates a new resource loader for the environment .