public class BindInterceptor extends Object
StaplerRequest.setBindInterceptor(BindInterceptor)
,
WebApp.bindInterceptors
Modifier and Type | Field and Description |
---|---|
static Object |
DEFAULT
Indicates that the conversion should proceed as it normally does,
and that the listener isn't replacing the process.
|
static BindInterceptor |
NOOP
Default
BindInterceptor that does nothing. |
Constructor and Description |
---|
BindInterceptor() |
Modifier and Type | Method and Description |
---|---|
Object |
instantiate(Class actualType,
net.sf.json.JSONObject json)
Called for each object conversion, after the actual subtype to instantiate is determined.
|
Object |
onConvert(Type targetType,
Class targetTypeErasure,
Object jsonSource)
Called for each object conversion, after the expected type is determined.
|
public static final Object DEFAULT
public static final BindInterceptor NOOP
BindInterceptor
that does nothing.public Object onConvert(Type targetType, Class targetTypeErasure, Object jsonSource)
targetType
- Type that the converted object must be assignable to.targetTypeErasure
- Erasure of the targetType
parameter.jsonSource
- JSON object to be mapped to Java object.DEFAULT
to indicate that the default conversion process should proceed.
Any other values (including null) will override the process.public Object instantiate(Class actualType, net.sf.json.JSONObject json)
actualType
- The type to instnatiatejson
- JSON object to be mapped to Java object.DEFAULT
to indicate that the default conversion process should proceed.
Any other values (including null) will override the process.Copyright © 2016. All rights reserved.