jodd.madvoc.interceptor
Class IdRequestInjectorInterceptor

java.lang.Object
  extended by jodd.madvoc.interceptor.ActionInterceptor
      extended by jodd.madvoc.interceptor.IdRequestInjectorInterceptor
Direct Known Subclasses:
PrepareAndIdInjectorInterceptor

public class IdRequestInjectorInterceptor
extends ActionInterceptor

Injects only ID request attributes and parameters that ends with '.id'.

See Also:
PrepareAndIdInjectorInterceptor

Field Summary
protected static java.lang.String ATTR_NAME_ID_SUFFIX
           
protected  MadvocConfig madvocConfig
           
protected  RequestScopeInjector requestInjector
           
 
Fields inherited from class jodd.madvoc.interceptor.ActionInterceptor
initialized
 
Constructor Summary
IdRequestInjectorInterceptor()
           
 
Method Summary
 void init()
          Invoked on interceptor initialization.
protected  void injectIdsFromRequest(ActionRequest actionRequest)
          Injects IDs from request.
 java.lang.Object intercept(ActionRequest actionRequest)
          Intercepts action requests.
 
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
 

Field Detail

ATTR_NAME_ID_SUFFIX

protected static final java.lang.String ATTR_NAME_ID_SUFFIX
See Also:
Constant Field Values

madvocConfig

@In(scope=CONTEXT)
protected MadvocConfig madvocConfig

requestInjector

protected RequestScopeInjector requestInjector
Constructor Detail

IdRequestInjectorInterceptor

public IdRequestInjectorInterceptor()
Method Detail

init

public void init()
Description copied from class: ActionInterceptor
Invoked on interceptor initialization.

Overrides:
init in class ActionInterceptor

intercept

public java.lang.Object intercept(ActionRequest actionRequest)
                           throws java.lang.Exception
Intercepts action requests.

Specified by:
intercept in class ActionInterceptor
Throws:
java.lang.Exception

injectIdsFromRequest

protected void injectIdsFromRequest(ActionRequest actionRequest)
Injects IDs from request. Invoked before action request is invoked.



Copyright © 2003-2011 Jodd Team