T
- The SPI typepublic class ResourceClass<T> extends Resource
Modifier and Type | Field and Description |
---|---|
protected Class<? extends T> |
resourceClass |
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
<S extends T> |
loadClass()
Get the value of resourceClass.
|
static void |
setLog(org.apache.commons.logging.Log _log)
Deprecated.
This method is not thread-safe
|
String |
toString() |
getClassLoader, getName, getResource, getResourceAsStream, toArray
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 locatedpublic 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@Deprecated public static void setLog(org.apache.commons.logging.Log _log)
Log
for this class._log
- This class Log
public <S extends T> Class<S> loadClass()
S
- Any type extends TCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.