Class ButterflyResourceLoader
- java.lang.Object
-
- org.apache.velocity.runtime.resource.loader.ResourceLoader
-
- org.apache.velocity.runtime.resource.loader.FileResourceLoader
-
- edu.mit.simile.butterfly.velocity.ButterflyResourceLoader
-
public class ButterflyResourceLoader extends org.apache.velocity.runtime.resource.loader.FileResourceLoaderThis is a velocity resource loader that is aware of the hierarchy of modules and therefore is capable of dealing with concepts such as template overloading and inheritance based on the wiring of Butterfly modules.
-
-
Constructor Summary
Constructors Constructor Description ButterflyResourceLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommonInit(org.apache.velocity.runtime.RuntimeServices rs, org.apache.commons.collections.ExtendedProperties configuration)longgetLastModified(org.apache.velocity.runtime.resource.Resource resource)InputStreamgetResourceStream(String name)booleanisSourceModified(org.apache.velocity.runtime.resource.Resource resource)-
Methods inherited from class org.apache.velocity.runtime.resource.loader.FileResourceLoader
init, resourceExists
-
-
-
-
Method Detail
-
commonInit
public void commonInit(org.apache.velocity.runtime.RuntimeServices rs, org.apache.commons.collections.ExtendedProperties configuration)- Overrides:
commonInitin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getResourceStream
public InputStream getResourceStream(String name) throws org.apache.velocity.exception.ResourceNotFoundException
- Overrides:
getResourceStreamin classorg.apache.velocity.runtime.resource.loader.FileResourceLoader- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Overrides:
isSourceModifiedin classorg.apache.velocity.runtime.resource.loader.FileResourceLoader
-
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Overrides:
getLastModifiedin classorg.apache.velocity.runtime.resource.loader.FileResourceLoader
-
-