public interface ClassPathElement extends Closeable
| Modifier and Type | Field and Description |
|---|---|
static ClassPathElement |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static ClassPathElement |
fromPath(Path path)
Creates an element from a file system path
|
Manifest |
getManifest() |
ProtectionDomain |
getProtectionDomain(ClassLoader classLoader) |
Set<String> |
getProvidedResources()
Returns a set of all known resources.
|
ClassPathResource |
getResource(String name)
Loads a resource from the class path element, or null if it does not exist.
|
static final ClassPathElement EMPTY
ClassPathResource getResource(String name)
name - The resource to loadSet<String> getProvidedResources()
ProtectionDomain getProtectionDomain(ClassLoader classLoader)
Manifest getManifest()
static ClassPathElement fromPath(Path path)
Copyright © 2020 JBoss by Red Hat. All rights reserved.