|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.discovery.Resource
org.apache.commons.discovery.ResourceClass<T>
T
- The SPI typepublic class ResourceClass<T>
'Resource' located by discovery. Naming of methods becomes a real pain ('getClass()') so I've patterned this after ClassLoader... I think it works well as it will give users a point-of-reference.
Field Summary | |
---|---|
protected java.lang.Class<? extends T> |
resourceClass
|
Fields inherited from class org.apache.commons.discovery.Resource |
---|
loader, name, resource |
Constructor Summary | |
---|---|
ResourceClass(java.lang.Class<S> resourceClass,
java.net.URL resource)
Create a new Resource class located by discovery. |
|
ResourceClass(java.lang.String resourceName,
java.net.URL resource,
java.lang.ClassLoader loader)
Create a new Resource class located by discovery. |
Method Summary | ||
---|---|---|
|
loadClass()
Get the value of resourceClass. |
|
static void |
setLog(org.apache.commons.logging.Log _log)
Deprecated. This method is not thread-safe |
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.commons.discovery.Resource |
---|
getClassLoader, getName, getResource, getResourceAsStream, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Class<? extends T> resourceClass
Constructor Detail |
---|
public ResourceClass(java.lang.Class<S> resourceClass, java.net.URL resource)
Resource
class located by discovery.
S
- Any type extends TresourceClass
- The resource class has to be locatedresource
- The resource URL has to be locatedpublic ResourceClass(java.lang.String resourceName, java.net.URL resource, java.lang.ClassLoader loader)
Resource
class located by discovery.
resourceName
- The resource class name has to be locatedresource
- The resource URL has to be locatedloader
- The class loaders holderMethod Detail |
---|
@Deprecated public static void setLog(org.apache.commons.logging.Log _log)
Log
for this class.
_log
- This class Log
public <S extends T> java.lang.Class<S> loadClass()
S
- Any type extends T
public java.lang.String toString()
toString
in class Resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |