public class DirectoryClassPathElement extends AbstractClassPathElement
EMPTY| Constructor and Description |
|---|
DirectoryClassPathElement(Path root) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
String |
toString() |
getManifestclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromPathpublic DirectoryClassPathElement(Path root)
public ClassPathResource getResource(String name)
ClassPathElementname - The resource to loadpublic Set<String> getProvidedResources()
ClassPathElementpublic ProtectionDomain getProtectionDomain(ClassLoader classLoader)
public void close()
throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.