jodd.madvoc.component
Class ResultMapper

java.lang.Object
  extended by jodd.madvoc.component.ResultMapper

public class ResultMapper
extends java.lang.Object

Maps action results to result path. Invoked just before the result itself.


Field Summary
protected  MadvocConfig madvocConfig
           
 
Constructor Summary
ResultMapper()
           
 
Method Summary
protected  java.lang.String resolveAlias(java.lang.String resultValue)
          Returns resolved alias result value or passed on, if alias doesn't exist.
 java.lang.String resolveResultPath(ActionConfig cfg, java.lang.String resultValue)
          Resolves result path from action configuration and result value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

madvocConfig

@PetiteInject
protected MadvocConfig madvocConfig
Constructor Detail

ResultMapper

public ResultMapper()
Method Detail

resolveAlias

protected java.lang.String resolveAlias(java.lang.String resultValue)
Returns resolved alias result value or passed on, if alias doesn't exist.


resolveResultPath

public java.lang.String resolveResultPath(ActionConfig cfg,
                                          java.lang.String resultValue)
Resolves result path from action configuration and result value. By default, the result value is appended to the class action path and method action path. If result value starts with path prefix, it represent complete path. Although result value may be null, result is never null.



Copyright © 2003-2010 Jodd Team