Liferay 6.2-ce-ga5

com.liferay.portal.velocity
Class LiferayResourceManager

java.lang.Object
  extended by org.apache.velocity.runtime.resource.ResourceManagerImpl
      extended by com.liferay.portal.velocity.LiferayResourceManager
All Implemented Interfaces:
org.apache.velocity.runtime.resource.ResourceManager

public class LiferayResourceManager
extends org.apache.velocity.runtime.resource.ResourceManagerImpl


Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.ResourceManagerImpl
globalCache, log, RESOURCE_CONTENT, RESOURCE_TEMPLATE, resourceLoaders, rsvc
 
Constructor Summary
LiferayResourceManager()
           
 
Method Summary
 String getLoaderNameForResource(String source)
           
 org.apache.velocity.runtime.resource.Resource getResource(String resourceName, int resourceType, String encoding)
           
 void initialize(org.apache.velocity.runtime.RuntimeServices runtimeServices)
           
 
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
 

Constructor Detail

LiferayResourceManager

public LiferayResourceManager()
Method Detail

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

Liferay 6.2-ce-ga5