Class GetResourcesFunction.Abst
java.lang.Object
io.github.toolfactory.jvm.function.catalog.GetResourcesFunction.Abst
- All Implemented Interfaces:
GetResourcesFunction
,ThrowingTriFunction<String,
Boolean, ClassLoader[], Collection<URL>, Throwable>
- Direct Known Subclasses:
GetResourcesFunction.ForJava7
- Enclosing interface:
GetResourcesFunction
public abstract static class GetResourcesFunction.Abst
extends Object
implements GetResourcesFunction
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.toolfactory.jvm.function.catalog.GetResourcesFunction
GetResourcesFunction.Abst, GetResourcesFunction.ForJava7, GetResourcesFunction.ForJava9
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ThrowingQuadFunction
<ClassLoader, String, Boolean, Collection<URL>, Collection<URL>, Throwable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(String resourceRelativePath, Boolean findFirst, ClassLoader[] resourceClassLoaders) apply
(String resourceRelativePath, Boolean findFirst, Collection<ClassLoader> resourceClassLoaders) protected abstract ThrowingQuadFunction
<ClassLoader, String, Boolean, Collection<URL>, Collection<URL>, Throwable> buildResourceFinder
(Map<Object, Object> context)
-
Field Details
-
resourceFinder
protected ThrowingQuadFunction<ClassLoader,String, resourceFinderBoolean, Collection<URL>, Collection<URL>, Throwable>
-
-
Constructor Details
-
Abst
- Throws:
Throwable
-
-
Method Details
-
buildResourceFinder
protected abstract ThrowingQuadFunction<ClassLoader,String, buildResourceFinderBoolean, Collection<URL>, Collection<URL>, Throwable> (Map<Object, Object> context) throws Throwable- Throws:
Throwable
-
apply
public Collection<URL> apply(String resourceRelativePath, Boolean findFirst, ClassLoader[] resourceClassLoaders) throws Throwable - Specified by:
apply
in interfaceThrowingTriFunction<String,
Boolean, ClassLoader[], Collection<URL>, Throwable> - Throws:
Throwable
-
apply
public Collection<URL> apply(String resourceRelativePath, Boolean findFirst, Collection<ClassLoader> resourceClassLoaders) throws Throwable - Specified by:
apply
in interfaceGetResourcesFunction
- Throws:
Throwable
-