|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceLoader
A loader for resources from a specific resource root within a module.
Method Summary | |
---|---|
ClassSpec |
getClassSpec(String fileName)
Get the class specification for the given class name. |
String |
getLibrary(String name)
Get the absolute physical filesystem path for a library with the given name. |
PackageSpec |
getPackageSpec(String name)
Get the package specification for the given directory name. |
Collection<String> |
getPaths()
Get the collection of resource paths. |
Resource |
getResource(String name)
Get a resource with the given name. |
String |
getRootName()
Get the name of the root represented by this resource loader. |
Method Detail |
---|
String getRootName()
ClassSpec getClassSpec(String fileName) throws IOException
null
is returned.
fileName
- the fileName of the class, e.g. for the class org.jboss.modules.ResourceLoader
the fileName will be org/jboss/modules/ResourceLoader.class
null
if the named class is not found
IOException
- if an I/O error occursPackageSpec getPackageSpec(String name) throws IOException
/
" separators.
name
- the directory name
IOException
- if an I/O error occursResource getResource(String name)
null
is returned.
The resource name will always be specified using "/
" separators for the directory segments.
name
- the resource name
null
if it is not availableString getLibrary(String name)
/
" characters.
name
- the name
null
if the library is not presentCollection<String> getPaths()
/
" characters to separate the path segments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |