public class WicketObjects extends Object
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cloneModel(T object)
Deprecated.
Use cloneObject(Object) instead
|
static <T> T |
cloneObject(T object)
Makes a deep clone of an object by serializing and deserializing it.
|
static <T> T |
newInstance(String className)
Creates a new instance using the current application's class resolver.
|
static <T> Class<T> |
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.
|
public static <T> Class<T> resolveClass(String className)
T - class typeclassName - Class to resolve@Deprecated public static <T> T cloneModel(T object)
Component instances. If the application uses custom
ISerializer then most probably this method cannot be used.object - The object to clonepublic static <T> T cloneObject(T object)
object - The object to clonecloneModel(Object)public static <T> T newInstance(String className)
className - The full class namepublic 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 ofCopyright © 2006–2014 Apache Software Foundation. All rights reserved.