Package org.ehcache.sizeof
Class SizeOfFilterSource
- java.lang.Object
-
- org.ehcache.sizeof.SizeOfFilterSource
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.CopyOnWriteArrayList<SizeOfFilter>
filters
private TypeFilter
typeFilter
-
Constructor Summary
Constructors Constructor Description SizeOfFilterSource(boolean registerAnnotationFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
applyMutators()
(package private) void
applyMutators(java.lang.ClassLoader classLoader)
SizeOfFilter[]
getFilters()
void
ignoreField(java.lang.reflect.Field field)
Adds a field to the ignore list.void
ignoreInstancesOf(java.lang.Class clazz, boolean strict)
Adds the class to the ignore list.
-
-
-
Field Detail
-
filters
private final java.util.concurrent.CopyOnWriteArrayList<SizeOfFilter> filters
-
typeFilter
private final TypeFilter typeFilter
-
-
Method Detail
-
applyMutators
private void applyMutators()
-
applyMutators
void applyMutators(java.lang.ClassLoader classLoader)
-
getFilters
public SizeOfFilter[] getFilters()
-
ignoreInstancesOf
public void ignoreInstancesOf(java.lang.Class clazz, boolean strict)
Description copied from interface:Filter
Adds the class to the ignore list. Can be strict, or include subtypes- Specified by:
ignoreInstancesOf
in interfaceFilter
- Parameters:
clazz
- the class to ignorestrict
- true if to be ignored strictly, or false to include sub-classes
-
ignoreField
public void ignoreField(java.lang.reflect.Field field)
Description copied from interface:Filter
Adds a field to the ignore list. When that field is walked to by the SizeOfEngine, it won't navigate the graph further- Specified by:
ignoreField
in interfaceFilter
- Parameters:
field
- the field to stop navigating the graph at
-
-