Package org.apache.manifoldcf.core.i18n
Class MCFVelocityResourceLoader
- java.lang.Object
-
- org.apache.velocity.runtime.resource.loader.ResourceLoader
-
- org.apache.manifoldcf.core.i18n.MCFVelocityResourceLoader
-
public class MCFVelocityResourceLoader extends org.apache.velocity.runtime.resource.loader.ResourceLoaderOur own Velocity resource loader, which uses our class resolution to find Velocity template resources.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassclassInstance
-
Constructor Summary
Constructors Constructor Description MCFVelocityResourceLoader(java.lang.Class classInstance)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastModified(org.apache.velocity.runtime.resource.Resource resource)java.io.ReadergetResourceReader(java.lang.String source, java.lang.String encoding)java.io.InputStreamgetResourceStream(java.lang.String source)voidinit(org.apache.velocity.util.ExtProperties configurations)booleanisSourceModified(org.apache.velocity.runtime.resource.Resource resource)
-
-
-
Method Detail
-
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
getLastModifiedin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getResourceReader
public java.io.Reader getResourceReader(java.lang.String source, java.lang.String encoding) throws org.apache.velocity.exception.ResourceNotFoundException- Specified by:
getResourceReaderin classorg.apache.velocity.runtime.resource.loader.ResourceLoader- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-
getResourceStream
public java.io.InputStream getResourceStream(java.lang.String source) throws org.apache.velocity.exception.ResourceNotFoundException- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-
init
public void init(org.apache.velocity.util.ExtProperties configurations)
- Specified by:
initin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
isSourceModifiedin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
-