public class VFSResourceLoader
extends org.jboss.modules.AbstractResourceLoader
implements org.jboss.modules.IterableResourceLoader
Constructor and Description |
---|
VFSResourceLoader(String rootName,
org.jboss.vfs.VirtualFile root)
Construct new instance.
|
VFSResourceLoader(String rootName,
org.jboss.vfs.VirtualFile root,
boolean usePhysicalCodeSource)
Construct new instance.
|
Modifier and Type | Method and Description |
---|---|
org.jboss.modules.ClassSpec |
getClassSpec(String name) |
org.jboss.modules.filter.PathFilter |
getExportFilter() |
String |
getLibrary(String name) |
org.jboss.modules.PackageSpec |
getPackageSpec(String name) |
Collection<String> |
getPaths() |
org.jboss.modules.Resource |
getResource(String name) |
String |
getRootName() |
Iterator<org.jboss.modules.Resource> |
iterateResources(String startPath,
boolean recursive) |
public VFSResourceLoader(String rootName, org.jboss.vfs.VirtualFile root) throws IOException
rootName
- The module root nameroot
- The root virtual fileIOException
- if the manifest could not be read or the root URL is invalidpublic VFSResourceLoader(String rootName, org.jboss.vfs.VirtualFile root, boolean usePhysicalCodeSource) throws IOException
rootName
- The module root nameroot
- The root virtual fileusePhysicalCodeSource
- true
to use the physical root URL for code sources, false
to use the VFS URLIOException
- if the manifest could not be read or the root URL is invalidpublic org.jboss.modules.ClassSpec getClassSpec(String name) throws IOException
getClassSpec
in interface org.jboss.modules.ResourceLoader
getClassSpec
in class org.jboss.modules.AbstractResourceLoader
IOException
public org.jboss.modules.PackageSpec getPackageSpec(String name) throws IOException
getPackageSpec
in interface org.jboss.modules.ResourceLoader
getPackageSpec
in class org.jboss.modules.AbstractResourceLoader
IOException
public String getLibrary(String name)
getLibrary
in interface org.jboss.modules.ResourceLoader
getLibrary
in class org.jboss.modules.AbstractResourceLoader
public String getRootName()
getRootName
in interface org.jboss.modules.ResourceLoader
getRootName
in class org.jboss.modules.AbstractResourceLoader
public org.jboss.modules.filter.PathFilter getExportFilter()
public org.jboss.modules.Resource getResource(String name)
getResource
in interface org.jboss.modules.ResourceLoader
getResource
in class org.jboss.modules.AbstractResourceLoader
public Collection<String> getPaths()
getPaths
in interface org.jboss.modules.ResourceLoader
getPaths
in class org.jboss.modules.AbstractResourceLoader
Copyright © 2023 JBoss by Red Hat. All rights reserved.