|
JBoss Modules 1.1.2.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.modules.AbstractResourceLoader
public abstract class AbstractResourceLoader

An abstract resource loader implementation.
| Constructor Summary | |
|---|---|
AbstractResourceLoader()
|
|
| 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. |
protected static PackageSpec |
getPackageSpec(String name,
Manifest manifest,
URL rootUrl)
Convenience method to get a package specification from a Manifest. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractResourceLoader()
| Method Detail |
|---|
protected static PackageSpec getPackageSpec(String name,
Manifest manifest,
URL rootUrl)
Manifest.
name - the (dot-separated) package namemanifest - the Manifest instancerootUrl - the code source URL
public String getRootName()
getRootName in interface ResourceLoader
public ClassSpec getClassSpec(String fileName)
throws IOException
null is returned.
Returns null by default.
getClassSpec in interface ResourceLoaderfileName - 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 occurs
public PackageSpec getPackageSpec(String name)
throws IOException
/" separators. Returns null by default.
getPackageSpec in interface ResourceLoadername - the directory name
IOException - if an I/O error occurspublic Resource getResource(String name)
null is returned. The resource name
will always be specified using "/" separators for the directory segments. Returns null by default.
getResource in interface ResourceLoadername - the resource name
null if it is not availablepublic String getLibrary(String name)
/" characters. Returns null by default.
getLibrary in interface ResourceLoadername - the name
null if the library is not presentpublic Collection<String> getPaths()
/" characters to separate the path segments. Returns an empty set by default.
getPaths in interface ResourceLoader
|
JBoss Modules 1.1.2.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||