Package com.epam.common.resourceloader
Interface ResourceLoader
- All Known Implementing Classes:
ClassPathResourceLoader,CurrentDirResourceLoader,GenericFileResourceLoader,HomeDirResourceLoader
public interface ResourceLoader
Standard interface to implement by every ResourceLoader strategy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLoaderDefault ResourceLoader looking for resources in following order: 1.static final ResourceLoader -
Method Summary
-
Field Details
-
DEFAULT_LOADER
Default ResourceLoader looking for resources in following order: 1. ClassPath 2. CurrentDir 3. Home -
DICTIONARY_LOADER
-
-
Method Details
-
loadResource
Method to load resource.- Parameters:
resourceName- the resource name- Returns:
- InputStream by opening a connection to a Resource specified
- Throws:
ResourceNotFoundException- if resource not found and no parent ResrourceLoader available
-