com.liferay.portal.velocity
Class LiferayResourceManager
java.lang.Object
org.apache.velocity.runtime.resource.ResourceManagerImpl
com.liferay.portal.velocity.LiferayResourceManager
- All Implemented Interfaces:
- org.apache.velocity.runtime.resource.ResourceManager
public class LiferayResourceManager
- extends org.apache.velocity.runtime.resource.ResourceManagerImpl
Fields inherited from class org.apache.velocity.runtime.resource.ResourceManagerImpl |
globalCache, log, RESOURCE_CONTENT, RESOURCE_TEMPLATE, resourceLoaders, rsvc |
Methods inherited from class org.apache.velocity.runtime.resource.ResourceManagerImpl |
createResource, getResource, loadResource, refreshResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiferayResourceManager
public LiferayResourceManager()
getLoaderNameForResource
public String getLoaderNameForResource(String source)
- Specified by:
getLoaderNameForResource
in interface org.apache.velocity.runtime.resource.ResourceManager
- Overrides:
getLoaderNameForResource
in class org.apache.velocity.runtime.resource.ResourceManagerImpl
getResource
public org.apache.velocity.runtime.resource.Resource getResource(String resourceName,
int resourceType,
String encoding)
throws Exception,
org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.ResourceNotFoundException
- Specified by:
getResource
in interface org.apache.velocity.runtime.resource.ResourceManager
- Overrides:
getResource
in class org.apache.velocity.runtime.resource.ResourceManagerImpl
- Throws:
Exception
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.ResourceNotFoundException
initialize
public void initialize(org.apache.velocity.runtime.RuntimeServices runtimeServices)
throws Exception
- Specified by:
initialize
in interface org.apache.velocity.runtime.resource.ResourceManager
- Overrides:
initialize
in class org.apache.velocity.runtime.resource.ResourceManagerImpl
- Throws:
Exception