public class CustomResourceLoader extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Constructor and Description |
---|
CustomResourceLoader() |
Modifier and Type | Method and Description |
---|---|
void |
commonInit(org.apache.velocity.runtime.RuntimeServices rs,
org.apache.commons.collections.ExtendedProperties configuration) |
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
static HashMap<String,String> |
getResources() |
InputStream |
getResourceStream(String name) |
void |
init(org.apache.commons.collections.ExtendedProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
static void |
setResources(HashMap<String,String> arg0) |
public CustomResourceLoader()
public void commonInit(org.apache.velocity.runtime.RuntimeServices rs, org.apache.commons.collections.ExtendedProperties configuration)
commonInit
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public void init(org.apache.commons.collections.ExtendedProperties configuration)
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public InputStream getResourceStream(String name) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public static HashMap<String,String> getResources()
public static void setResources(HashMap<String,String> arg0)
Copyright © 2005–2014. All rights reserved.