|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.proxy.ProxyHelper
public class ProxyHelper
A proxy helper class to create a proxy cache mechanism for Set, List, Collection, Map, and POJO.
Constructor Summary | |
---|---|
ProxyHelper()
|
Method Summary | ||
---|---|---|
static void |
addIgnoredProxyClass(java.lang.Class<?> type)
Adds an ignored proxy class type. |
|
static
|
createFormProxy(T origin,
java.lang.Class<?> type)
Creates a proxy form object from the given origin object, if any. |
|
static
|
createProxyIfAny(T origin)
Creates a proxy object from the given origin object, if any. |
|
static
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyHelper()
Method Detail |
---|
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 object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |