jodd.madvoc.interceptor
Class PrepareAndIdInjectorInterceptor

java.lang.Object
  extended by jodd.madvoc.interceptor.ActionInterceptor
      extended by jodd.madvoc.interceptor.IdRequestInjectorInterceptor
          extended by jodd.madvoc.interceptor.PrepareAndIdInjectorInterceptor

public class PrepareAndIdInjectorInterceptor
extends IdRequestInjectorInterceptor

This is a simple join of IdRequestInjectorInterceptor and PrepareInterceptor. Since it is common to use these interceptors together, this one joins then into one interceptor. This join is a bit more efficient, since ids will be injected only if action is Preparable.


Field Summary
 
Fields inherited from class jodd.madvoc.interceptor.IdRequestInjectorInterceptor
ATTR_NAME_ID_SUFFIX, madvocConfig, requestInjector
 
Fields inherited from class jodd.madvoc.interceptor.ActionInterceptor
initialized
 
Constructor Summary
PrepareAndIdInjectorInterceptor()
           
 
Method Summary
 java.lang.Object intercept(ActionRequest actionRequest)
          If action is preparable, injects ids from request and invokes prepare().
 
Methods inherited from class jodd.madvoc.interceptor.IdRequestInjectorInterceptor
init, injectIdsFromRequest
 
Methods inherited from class jodd.madvoc.interceptor.ActionInterceptor
initialized, isInitialized, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrepareAndIdInjectorInterceptor

public PrepareAndIdInjectorInterceptor()
Method Detail

intercept

public java.lang.Object intercept(ActionRequest actionRequest)
                           throws java.lang.Exception
If action is preparable, injects ids from request and invokes prepare().

Overrides:
intercept in class IdRequestInjectorInterceptor
Throws:
java.lang.Exception


Copyright © 2003-2010 Jodd Team