Package org.ehcache.sizeof
Class SizeOfFilterSource
java.lang.Object
org.ehcache.sizeof.SizeOfFilterSource
- All Implemented Interfaces:
Filter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CopyOnWriteArrayList
<SizeOfFilter> private final TypeFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
(package private) void
applyMutators
(ClassLoader classLoader) void
ignoreField
(Field field) Adds a field to the ignore list.void
ignoreInstancesOf
(Class clazz, boolean strict) Adds the class to the ignore list.
-
Field Details
-
filters
-
typeFilter
-
-
Constructor Details
-
SizeOfFilterSource
public SizeOfFilterSource(boolean registerAnnotationFilter)
-
-
Method Details
-
applyMutators
private void applyMutators() -
applyMutators
-
getFilters
-
ignoreInstancesOf
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
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
-