com.norconex.commons.lang.config
Class RelativeIncludeEventHandler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelativeIncludeEventHandler
public RelativeIncludeEventHandler()
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.