Package ch.kk7.confij.source.resource
Class ClasspathResource.AnyClasspathResource
java.lang.Object
ch.kk7.confij.source.resource.ClasspathResource.AnyClasspathResource
- All Implemented Interfaces:
ConfijAnyResource
- Enclosing class:
- ClasspathResource
@AutoService(ConfijAnyResource.class) public static class ClasspathResource.AnyClasspathResource extends java.lang.Object implements ConfijAnyResource
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCHEME -
Constructor Summary
Constructors Constructor Description AnyClasspathResource() -
Method Summary
Modifier and Type Method Description java.util.Optional<ClasspathResource>maybeHandle(java.lang.String pathTemplate)Receive a "preview" on the URI to be processed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SCHEME
public static final java.lang.String SCHEME- See Also:
- Constant Field Values
-
-
Constructor Details
-
AnyClasspathResource
public AnyClasspathResource()
-
-
Method Details
-
maybeHandle
Description copied from interface:ConfijAnyResourceReceive a "preview" on the URI to be processed. This resouce provider can choose to accept or reject processing it. This is most commonly decided based on the URI's scheme.- Specified by:
maybeHandlein interfaceConfijAnyResource- Parameters:
pathTemplate- an URI to be processed later.- Returns:
- a stream of strings if this resouce provider accepts processing this URI (but it can still fail), empty if the uri doesn't look like it could be processed
-