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>filtersprivate TypeFiltertypeFilter
-
Constructor Summary
Constructors Constructor Description SizeOfFilterSource(boolean registerAnnotationFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidapplyMutators()(package private) voidapplyMutators(java.lang.ClassLoader classLoader)SizeOfFilter[]getFilters()voidignoreField(java.lang.reflect.Field field)Adds a field to the ignore list.voidignoreInstancesOf(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:FilterAdds the class to the ignore list. Can be strict, or include subtypes- Specified by:
ignoreInstancesOfin 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:FilterAdds a field to the ignore list. When that field is walked to by the SizeOfEngine, it won't navigate the graph further- Specified by:
ignoreFieldin interfaceFilter- Parameters:
field- the field to stop navigating the graph at
-
-