Class JarResourcesConfigPathResolver
java.lang.Object
me.bristermitten.mittenlib.config.paths.JarResourcesConfigPathResolver
- All Implemented Interfaces:
ConfigPathResolver
A
ConfigPathResolver that resolves config paths from the jar resources.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigPath(String configFileName) Resolve a file name to aPath
-
Constructor Details
-
JarResourcesConfigPathResolver
public JarResourcesConfigPathResolver()
-
-
Method Details
-
getConfigPath
Description copied from interface:ConfigPathResolverResolve a file name to aPath- Specified by:
getConfigPathin interfaceConfigPathResolver- Parameters:
configFileName- the file name to resolve- Returns:
- the resolved path, or an error if the file name could not be resolved. Note that this may return a successful result with a path that does not exist. The failure case is specifically for error states.
-