public class SpringResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoaderjava.io.File に解決できないリソースローダーパスに対して VelocityEngineFactory によって使用されます。 このローダーでは変更の検出はできないことに注意してください。java.io.File リソースには Velocity のデフォルトの FileResourceLoader を使用してください。
Velocity ランタイムでは、"spring.resource.loader" および "spring.resource.loader.path" アプリケーション属性が必要です。前者は org.springframework.core.io.ResourceLoader 型、後者は文字列です。
VelocityEngineFactory.setResourceLoaderPath(java.lang.String), ResourceLoader, FileResourceLoader| 修飾子と型 | フィールドと説明 |
|---|---|
protected Log | logger |
static StringSE | NAME |
static StringSE | SPRING_RESOURCE_LOADER |
static StringSE | SPRING_RESOURCE_LOADER_CACHE |
static StringSE | SPRING_RESOURCE_LOADER_CLASS |
static StringSE | SPRING_RESOURCE_LOADER_PATH |
| コンストラクターと説明 |
|---|
SpringResourceLoader() |
| 修飾子と型 | メソッドと説明 |
|---|---|
long | getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
InputStreamSE | getResourceStream(StringSE source) |
void | init(org.apache.commons.collections.ExtendedProperties configuration) |
boolean | isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckIntervalcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static final StringSE SPRING_RESOURCE_LOADER_CLASS
public static final StringSE SPRING_RESOURCE_LOADER_CACHE
protected final Log logger
public void init(org.apache.commons.collections.ExtendedProperties configuration)
org.apache.velocity.runtime.resource.loader.ResourceLoader の init public InputStreamSE getResourceStream(StringSE source) throws org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.runtime.resource.loader.ResourceLoader の getResourceStream org.apache.velocity.exception.ResourceNotFoundExceptionpublic boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
org.apache.velocity.runtime.resource.loader.ResourceLoader の isSourceModified public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
org.apache.velocity.runtime.resource.loader.ResourceLoader の getLastModified