Package net.obvj.confectory.source
Class ClasspathFileSource<T>
- java.lang.Object
-
- net.obvj.confectory.source.AbstractSource<T>
-
- net.obvj.confectory.source.URLSource<T>
-
- net.obvj.confectory.source.ClasspathFileSource<T>
-
-
Constructor Summary
Constructors Constructor Description ClasspathFileSource(String path)Builds a new configuration source for specific local file resource in the classpath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tload(Mapper<T> mapper)Applies a specific configuration loading strategy and returns a mapped bean containing the retrieved data, throwing an exception if the operation fails.-
Methods inherited from class net.obvj.confectory.source.AbstractSource
equals, hashCode, load, toString
-
-
-
-
Constructor Detail
-
ClasspathFileSource
public ClasspathFileSource(String path)
Builds a new configuration source for specific local file resource in the classpath.- Parameters:
path- the classpath file name (or relative path) for this configuration source.
-
-