Package com.norconex.commons.lang.config
Class ExtendedReferenceInsertionEventHandler
- java.lang.Object
-
- com.norconex.commons.lang.config.ExtendedReferenceInsertionEventHandler
-
- All Implemented Interfaces:
EventHandler,ReferenceInsertionEventHandler
public class ExtendedReferenceInsertionEventHandler extends Object implements ReferenceInsertionEventHandler
Velocity reference insertion event handler that when triggered, will try to resolve the reference against system properties or environment variables (in that order) if it could not resolved the normal way (before returning default value, if one was specified in the reference).- Since:
- 2.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description ExtendedReferenceInsertionEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectreferenceInsert(Context context, String reference, Object value)
-
-
-
Method Detail
-
referenceInsert
public Object referenceInsert(Context context, String reference, Object value)
- Specified by:
referenceInsertin interfaceReferenceInsertionEventHandler
-
-