java.lang.Object |
↳ |
ResourceLoader |
|
↳ |
org.springframework.ui.velocity.SpringResourceLoader |
Class Overview
Velocity ResourceLoader adapter that loads via a Spring ResourceLoader.
Used by VelocityEngineFactory for any resource loader path that cannot
be resolved to a java.io.File
.
Note that this loader does not allow for modification detection:
Use Velocity's default FileResourceLoader for java.io.File
resources.
Expects "spring.resource.loader" and "spring.resource.loader.path"
application attributes in the Velocity runtime: the former of type
org.springframework.core.io.ResourceLoader
, the latter a String.
Summary
Fields |
protected
final
Log |
logger |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
NAME
public
static
final
String
SPRING_RESOURCE_LOADER
Constant Value:
"spring.resource.loader"
public
static
final
String
SPRING_RESOURCE_LOADER_CACHE
Constant Value:
"spring.resource.loader.cache"
public
static
final
String
SPRING_RESOURCE_LOADER_CLASS
Constant Value:
"spring.resource.loader.class"
public
static
final
String
SPRING_RESOURCE_LOADER_PATH
Constant Value:
"spring.resource.loader.path"
Fields
protected
final
Log
logger
Public Constructors
public
SpringResourceLoader
()
Public Methods
public
long
getLastModified
(Resource resource)
public
InputStream
getResourceStream
(String source)
Throws
ResourceNotFoundException
| |
public
void
init
(ExtendedProperties configuration)
public
boolean
isSourceModified
(Resource resource)