Class InstrumentationObjectSizeOfStrategy
- java.lang.Object
-
- org.apache.wicket.util.instrument.InstrumentationObjectSizeOfStrategy
-
- All Implemented Interfaces:
WicketObjects.IObjectSizeOfStrategy
public class InstrumentationObjectSizeOfStrategy extends Object implements WicketObjects.IObjectSizeOfStrategy
Object size of strategy that is based on instrumentation.- Author:
- eelcohillenius
-
-
Constructor Summary
Constructors Constructor Description InstrumentationObjectSizeOfStrategy(Instrumentation instrumentation)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
sizeOf(Serializable obj)
Calculates full size of object iterating over its hierarchy graph.
-
-
-
Constructor Detail
-
InstrumentationObjectSizeOfStrategy
public InstrumentationObjectSizeOfStrategy(Instrumentation instrumentation)
Construct.- Parameters:
instrumentation
-
-
-
Method Detail
-
sizeOf
public long sizeOf(Serializable obj)
Calculates full size of object iterating over its hierarchy graph.- Specified by:
sizeOf
in interfaceWicketObjects.IObjectSizeOfStrategy
- Parameters:
obj
- object to calculate size of- Returns:
- object size
- See Also:
WicketObjects.IObjectSizeOfStrategy.sizeOf(java.io.Serializable)
-
-