Class JpmsResourceLocator
java.lang.Object
com.github.rvesse.airline.parser.resources.jpms.JpmsResourceLocator
- All Implemented Interfaces:
ResourceLocator
A resource locator that finds resources using
ClassGraph that works in JPMS runtime contexts where the
standard ClasspathLocator does not.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOpens a search location, potentially applying some resolution rules to that location
-
Constructor Details
-
JpmsResourceLocator
public JpmsResourceLocator()
-
-
Method Details
-
open
Description copied from interface:ResourceLocatorOpens a search location, potentially applying some resolution rules to that locationIf the given
resourceNameexists in the search location then that resource should be returned. If that is not a valid resource but the search location itself is a valid resource then the locator should return that instead.- Specified by:
openin interfaceResourceLocator- Parameters:
searchLocation- Search locationfilename- Resource name expected in the search location- Returns:
- Input stream to read the search location or
nullif not a valid location - Throws:
IOException- Thrown if there is a problem accessing the search location
-