|
||||||||||
| 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 Class<? extends T> |
resourceClass
|
| Fields inherited from class org.apache.commons.discovery.Resource |
|---|
loader, name, resource |
| Constructor Summary | |
|---|---|
ResourceClass(Class<S> resourceClass,
URL resource)
Create a new Resource class located by discovery. |
|
ResourceClass(String resourceName,
URL resource,
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 |
|
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 Class<? extends T> resourceClass
| Constructor Detail |
|---|
public ResourceClass(Class<S> resourceClass,
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 located
public ResourceClass(String resourceName,
URL resource,
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 holder| Method Detail |
|---|
@Deprecated public static void setLog(org.apache.commons.logging.Log _log)
Log for this class.
_log - This class Logpublic <S extends T> Class<S> loadClass()
S - Any type extends T
public String toString()
toString in class Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||