org.kohsuke.stapler
Class BindInterceptor

java.lang.Object
  extended by org.kohsuke.stapler.BindInterceptor

public class BindInterceptor
extends java.lang.Object

Intercepts (and receives callbacks) about the JSON->object binding process.

Author:
Kohsuke Kawaguchi

Field Summary
static java.lang.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 Summary
BindInterceptor()
           
 
Method Summary
 java.lang.Object onConvert(java.lang.reflect.Type targetType, java.lang.Class targetTypeErasure, java.lang.Object jsonSource)
          Called for each object conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final java.lang.Object DEFAULT
Indicates that the conversion should proceed as it normally does, and that the listener isn't replacing the process.


NOOP

public static final BindInterceptor NOOP
Default BindInterceptor that does nothing.

Constructor Detail

BindInterceptor

public BindInterceptor()
Method Detail

onConvert

public java.lang.Object onConvert(java.lang.reflect.Type targetType,
                                  java.lang.Class targetTypeErasure,
                                  java.lang.Object jsonSource)
Called for each object conversion.

Returns:
DEFAULT to indicate that the default conversion process should proceed. Any other values (including null) will override the process.


Copyright © 2012. All Rights Reserved.