public class ProxyHelper extends Object
| Constructor and Description |
|---|
ProxyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addIgnoredProxyClass(Class<?> type)
Adds an ignored proxy class type.
|
static <T> T |
createFormProxy(T origin,
Class<?> type)
Creates a proxy form object from the given origin object, if any.
|
static <T> T |
createProxyIfAny(T origin)
Creates a proxy object from the given origin object, if any.
|
static <T> T |
createProxyIfAny(T origin,
Annotation[] annotations)
Creates a proxy object from the given origin object, if any.
|
static boolean |
isImmutable(Object origin)
Returns whether the given origin object is immutable.
|
public static <T> T createProxyIfAny(T origin)
origin - public static <T> T createProxyIfAny(T origin,
Annotation[] annotations)
origin - annotations - the annotations of the caller method to indicate whether
the elements of the collection or Map type can proxy deeply, if any. (Optional)
Like ImmutableElementspublic static void addIgnoredProxyClass(Class<?> type)
public static boolean isImmutable(Object origin)
public static <T> T createFormProxy(T origin,
Class<?> type)
origin - the origin data objecttype - the class type of the data objectCopyright © 2015. All rights reserved.