public interface DataBoundResolvable
DataBoundConstructor
, the
bindResolve(StaplerRequest, JSONObject)
allows an instance to replace the object
bound from submitted JSON object.
This method is automatically invoked by Stapler during databinding method like
StaplerRequest.bindJSON(Class, JSONObject)
.
This method definition is inspired by Java serialization's readResolve()
method.
Modifier and Type | Method and Description |
---|---|
Object |
bindResolve(StaplerRequest request,
net.sf.json.JSONObject src)
Called after the object is instantiated to allow the object to nominate its replacement.
|
Object bindResolve(StaplerRequest request, net.sf.json.JSONObject src)
request
- Request object that's currently performing databinding. Passed in as a contextual
parameter.src
- JSON object that originally constructed the 'this' instance on which this method
is being invoked.Copyright © 2015. All rights reserved.