public class ResourceSizeOfFilter extends Object implements SizeOfFilter
Constructor and Description |
---|
ResourceSizeOfFilter(URL filterData)
Builds a filter based on the provided configuration URL
|
Modifier and Type | Method and Description |
---|---|
boolean |
filterClass(Class<?> klazz)
Checks whether the type needs to be filtered
|
Collection<Field> |
filterFields(Class<?> klazz,
Collection<Field> fields)
Returns the fields to walk and measure for a type
|
public ResourceSizeOfFilter(URL filterData) throws IOException
filterData
- the URL of the configurationIOException
- if it couldn't read the configuration from the URLpublic Collection<Field> filterFields(Class<?> klazz, Collection<Field> fields)
filterFields
in interface SizeOfFilter
klazz
- the typefields
- the fields already "qualified"public boolean filterClass(Class<?> klazz)
filterClass
in interface SizeOfFilter
klazz
- the typefalse
, if to be filtered outCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.