org.tinyjee.maven.dim.utils
Class AbstractAliasHandler

java.lang.Object
  extended by org.tinyjee.maven.dim.utils.AbstractAliasHandler
All Implemented Interfaces:
RequestParameterTransformer
Direct Known Subclasses:
DirectoryLoader.AliasHandler, InterfaceScanner.AliasHandler, JavaSourceLoader.AliasHandler, PropertiesLoader.AliasHandler, ScriptInvoker.AliasHandler, SvgLoader.AliasHandler, XmlLoader.AliasHandler

public abstract class AbstractAliasHandler
extends Object
implements RequestParameterTransformer

Implements an handler that allows the definition of aliases for request parameters.


Field Summary
 
Fields inherited from interface org.tinyjee.maven.dim.spi.RequestParameterTransformer
TRANSFORMERS
 
Constructor Summary
protected AbstractAliasHandler(String triggerParameter, String targetParameter, String sourceClass)
          Constructs a new AbstractAliasHandler for the given values.
 
Method Summary
 void transformParameters(Map<String,Object> requestParams)
          Transforms the specified request parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAliasHandler

protected AbstractAliasHandler(String triggerParameter,
                               String targetParameter,
                               String sourceClass)
Constructs a new AbstractAliasHandler for the given values.

Parameters:
triggerParameter - the parameter to trigger.
targetParameter - the parameter to transfer the trigger value to.
sourceClass - the source class to set if the trigger was present.
Method Detail

transformParameters

public void transformParameters(Map<String,Object> requestParams)
Transforms the specified request parameters.

Specified by:
transformParameters in interface RequestParameterTransformer
Parameters:
requestParams - the request params to modify.