Class DirectoryClassPathElement
- java.lang.Object
-
- io.quarkus.bootstrap.classloading.AbstractClassPathElement
-
- io.quarkus.bootstrap.classloading.DirectoryClassPathElement
-
- All Implemented Interfaces:
ClassPathElement,Closeable,AutoCloseable
public class DirectoryClassPathElement extends AbstractClassPathElement
A class path element that represents a file on the file system
-
-
Field Summary
-
Fields inherited from interface io.quarkus.bootstrap.classloading.ClassPathElement
EMPTY
-
-
Constructor Summary
Constructors Constructor Description DirectoryClassPathElement(Path root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ProtectionDomaingetProtectionDomain(ClassLoader classLoader)Set<String>getProvidedResources()Returns a set of all known resources.ClassPathResourcegetResource(String name)Loads a resource from the class path element, or null if it does not exist.PathgetRoot()StringtoString()-
Methods inherited from class io.quarkus.bootstrap.classloading.AbstractClassPathElement
getManifest
-
-
-
-
Constructor Detail
-
DirectoryClassPathElement
public DirectoryClassPathElement(Path root)
-
-
Method Detail
-
getRoot
public Path getRoot()
- Returns:
- The element root, or null if not applicable
-
getResource
public ClassPathResource getResource(String name)
Description copied from interface:ClassPathElementLoads a resource from the class path element, or null if it does not exist.- Parameters:
name- The resource to load- Returns:
- An representation of the class path resource if it exists
-
getProvidedResources
public Set<String> getProvidedResources()
Description copied from interface:ClassPathElementReturns a set of all known resources.- Returns:
- A set representing all known resources
-
getProtectionDomain
public ProtectionDomain getProtectionDomain(ClassLoader classLoader)
- Returns:
- The protection domain that should be used to define classes from this element
-
close
public void close() throws IOException- Throws:
IOException
-
-