Class AbstractResourceLoader<S>
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.AbstractResourceLoader<S>
- Type Parameters:
S- Type of the data to load
- All Implemented Interfaces:
ResourceLoader<S>
- Direct Known Subclasses:
ClassPathResourceLoader,FileResourceLoader
This class define an abstract resource loader.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoad all available resources.loadResources(String resourceName) Load a resource.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.ens.biologie.genomique.eoulsan.util.ResourceLoader
reload
-
Constructor Details
-
AbstractResourceLoader
public AbstractResourceLoader()
-
-
Method Details
-
loadAllResources
Description copied from interface:ResourceLoaderLoad all available resources.- Specified by:
loadAllResourcesin interfaceResourceLoader<S>- Returns:
- a list with all the loaded resources
-
loadResources
Description copied from interface:ResourceLoaderLoad a resource.- Specified by:
loadResourcesin interfaceResourceLoader<S>- Parameters:
resourceName- name of the resource to load- Returns:
- a list the loaded resources that had the requested name
-