ScopedModelDrivenInterceptor
instead.@Deprecated public class ScopedModelDrivenInterceptor extends AbstractInterceptor
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>
ConditionalInterceptor.LegacyAdapter
Constructor and Description |
---|
ScopedModelDrivenInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
intercept(ActionInvocation invocation)
Deprecated.
Override to handle interception
|
protected Object |
resolveModel(ObjectFactory factory,
ActionContext actionContext,
String modelClassName,
String modelScope,
String modelName)
Deprecated.
|
void |
setClassName(String className)
Deprecated.
|
void |
setName(String name)
Deprecated.
|
void |
setObjectFactory(ObjectFactory factory)
Deprecated.
|
void |
setScope(String scope)
Deprecated.
|
intercept, shouldIntercept, shouldIntercept
destroy, init, setDisabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt
adapt
destroy, init
public void setObjectFactory(ObjectFactory factory)
protected Object resolveModel(ObjectFactory factory, ActionContext actionContext, String modelClassName, String modelScope, String modelName) throws Exception
Exception
public String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptor
intercept
in class AbstractInterceptor
Exception
public void setClassName(String className)
className
- the className to setpublic void setName(String name)
name
- the name to setpublic void setScope(String scope)
scope
- the scope to setCopyright © 2000–2024 Apache Software Foundation. All rights reserved.