|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.lang.WicketObjects
public class WicketObjects
Object (de)serialization utilities.
| Nested Class Summary | |
|---|---|
static interface |
WicketObjects.IObjectSizeOfStrategy
Interface that enables users to plugin the way object sizes are calculated with Wicket. |
static class |
WicketObjects.SerializingObjectSizeOfStrategy
WicketObjects.IObjectSizeOfStrategy that works by serializing the object to an instance of
ByteCountingOutputStream, which records the number of bytes written to it. |
| Method Summary | ||
|---|---|---|
static Object |
cloneModel(Object object)
Makes a deep clone of an object by serializing and deserializing it. |
|
static Object |
cloneObject(Object object)
Makes a deep clone of an object by serializing and deserializing it. |
|
static Object |
newInstance(String className)
Creates a new instance using the current application's class resolver. |
|
static
|
resolveClass(String className)
|
|
static void |
setObjectSizeOfStrategy(WicketObjects.IObjectSizeOfStrategy objectSizeOfStrategy)
Sets the strategy for determining the sizes of objects. |
|
static long |
sizeof(Serializable object)
Computes the size of an object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Class<T> resolveClass(String className)
T - class typeclassName - Class to resolve
ClassNotFoundExceptionpublic static Object cloneModel(Object object)
object - The object to clone
public static Object cloneObject(Object object)
object - The object to clone
cloneModel(Object)public static Object newInstance(String className)
className - The full class name
public static void setObjectSizeOfStrategy(WicketObjects.IObjectSizeOfStrategy objectSizeOfStrategy)
objectSizeOfStrategy - the strategy. Pass null to reset to the default.public static long sizeof(Serializable object)
object - Object to compute size of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||