public class ProxyHelper
extends java.lang.Object
Constructor and Description |
---|
ProxyHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addIgnoredProxyClass(java.lang.Class<?> type)
Adds an ignored proxy class type.
|
static <T> T |
createFormProxy(T origin,
java.lang.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,
java.lang.annotation.Annotation[] annotations)
Creates a proxy object from the given origin object, if any.
|
static boolean |
isImmutable(java.lang.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, java.lang.annotation.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 ImmutableElements
public static void addIgnoredProxyClass(java.lang.Class<?> type)
public static boolean isImmutable(java.lang.Object origin)
public static <T> T createFormProxy(T origin, java.lang.Class<?> type)
origin
- the origin data objecttype
- the class type of the data objectCopyright © 2005-2011 Potix Corporation. All Rights Reserved.