com.norconex.commons.lang.config
Class RelativeIncludeEventHandler

java.lang.Object
  extended by com.norconex.commons.lang.config.RelativeIncludeEventHandler
All Implemented Interfaces:
EventHandler, IncludeEventHandler, ContextAware

public class RelativeIncludeEventHandler
extends Object
implements IncludeEventHandler, ContextAware

Velocity include event handler that check for includes both relative to a template location, and absolute to the current file system root otherwise. Used by ConfigurationLoader.

Author:
Pascal Essiembre

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.velocity.app.event.IncludeEventHandler
IncludeEventHandler.IncludeEventExecutor
 
Constructor Summary
RelativeIncludeEventHandler()
           
 
Method Summary
 String includeEvent(String includeResourcePath, String currentResourcePath, String directiveName)
           
 void setContext(Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativeIncludeEventHandler

public RelativeIncludeEventHandler()
Method Detail

includeEvent

public String includeEvent(String includeResourcePath,
                           String currentResourcePath,
                           String directiveName)
Specified by:
includeEvent in interface IncludeEventHandler

setContext

public void setContext(Context context)
Specified by:
setContext in interface ContextAware


Copyright © 2008-2013 Norconex Inc.. All Rights Reserved.