Class FilteredClassPathElement
java.lang.Object
io.quarkus.bootstrap.classloading.FilteredClassPathElement
- All Implemented Interfaces:
ClassPathElement,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.quarkus.bootstrap.classloading.ClassPathElement
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionFilteredClassPathElement(ClassPathElement delegate, Collection<String> removed) -
Method Summary
Modifier and TypeMethodDescription<T> Tapply(Function<OpenPathTree, T> func) Processes the content of this classpath element and returns a result.voidclose()Returns a set of all known resources.If this classpath element represents a Maven artifact, the method will return it, otherwise - null.getResource(String name) Loads a resource from the class path element, or null if it does not exist.getRoot()booleanChecks whether this is a runtime classpath elementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.bootstrap.classloading.ClassPathElement
getDependencyKey, getResources
-
Constructor Details
-
FilteredClassPathElement
-
-
Method Details
-
getResolvedDependency
Description copied from interface:ClassPathElementIf this classpath element represents a Maven artifact, the method will return it, otherwise - null.- Specified by:
getResolvedDependencyin interfaceClassPathElement- Returns:
- the Maven artifact this classpath element represents or null, in case this element does not represent any Maven artifact
-
isRuntime
public boolean isRuntime()Description copied from interface:ClassPathElementChecks whether this is a runtime classpath element- Specified by:
isRuntimein interfaceClassPathElement- Returns:
- true in case this is a runtime classpath element, otherwise - false
-
apply
Description copied from interface:ClassPathElementProcesses the content of this classpath element and returns a result.- Specified by:
applyin interfaceClassPathElement- Type Parameters:
T- result type- Parameters:
func- content processing function- Returns:
- processing result
-
getRoot
- Specified by:
getRootin interfaceClassPathElement- Returns:
- The element root, or null if not applicable
-
getResource
Description copied from interface:ClassPathElementLoads a resource from the class path element, or null if it does not exist.- Specified by:
getResourcein interfaceClassPathElement- Parameters:
name- The resource to load- Returns:
- An representation of the class path resource if it exists
-
getProvidedResources
Description copied from interface:ClassPathElementReturns a set of all known resources.- Specified by:
getProvidedResourcesin interfaceClassPathElement- Returns:
- A set representing all known resources
-
getProtectionDomain
- Specified by:
getProtectionDomainin interfaceClassPathElement- Returns:
- The protection domain that should be used to define classes from this element
-
getManifest
- Specified by:
getManifestin interfaceClassPathElement
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-