Home » xwork-2.1.5 » com.opensymphony » xwork2 » interceptor » [javadoc | source]
com.opensymphony.xwork2.interceptor
public class: ScopedModelDrivenInterceptor [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.interceptor.AbstractInterceptor
      com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor

All Implemented Interfaces:
    Interceptor

An interceptor that enables scoped model-driven actions.

This interceptor only activates on actions that implement the ScopedModelDriven interface. If detected, it will retrieve the model class from the configured scope, then provide it to the Action.

Interceptor parameters:

Extending the interceptor:

There are no known extension points for this interceptor.

Example code:



<-- Basic usage -->
<interceptor name="scopedModelDriven" class="com.opensymphony.interceptor.ScopedModelDrivenInterceptor" />

<-- Using all available parameters -->
<interceptor name="gangsterForm" class="com.opensymphony.interceptor.ScopedModelDrivenInterceptor">
     <param name="scope">session</param>
     <param name="name">gangsterForm</param>
     <param name="className">com.opensymphony.example.GangsterForm</param>
 </interceptor>


Method from com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor Summary:
intercept,   resolveModel,   setClassName,   setName,   setObjectFactory,   setScope
Methods from com.opensymphony.xwork2.interceptor.AbstractInterceptor:
destroy,   init,   intercept
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor Detail:
 public String intercept(ActionInvocation invocation) throws Exception 
 protected Object resolveModel(ObjectFactory factory,
    ActionContext actionContext,
    String modelClassName,
    String modelScope,
    String modelName) throws Exception 
 public  void setClassName(String className) 
 public  void setName(String name) 
 public  void setObjectFactory(ObjectFactory factory) 
 public  void setScope(String scope)