Package jodd.introspector
Class CachingIntrospector
java.lang.Object
jodd.introspector.CachingIntrospector
- All Implemented Interfaces:
ClassIntrospector
Default
introspector that caches all class descriptors.
It can examine either accessible or supported fields/methods/constructors.
It simply caches all class descriptors.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jodd.introspector.ClassIntrospector
ClassIntrospector.Implementation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TypeCache<ClassDescriptor> protected final booleanprotected final booleanprotected final String[]protected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CachingIntrospector(boolean scanAccessible, boolean enhancedProperties, boolean includeFieldsAsProperties, String[] propertyFieldPrefix) Creates new cachingClassIntrospector. -
Method Summary
Modifier and TypeMethodDescriptionReturns class descriptor for specified type.voidreset()Clears all cached data.
-
Field Details
-
cache
-
scanAccessible
protected final boolean scanAccessible -
enhancedProperties
protected final boolean enhancedProperties -
includeFieldsAsProperties
protected final boolean includeFieldsAsProperties -
propertyFieldPrefix
-
-
Constructor Details
-
CachingIntrospector
public CachingIntrospector()Default constructor. -
CachingIntrospector
public CachingIntrospector(boolean scanAccessible, boolean enhancedProperties, boolean includeFieldsAsProperties, String[] propertyFieldPrefix) Creates new cachingClassIntrospector. It may scan accessible or supported fields, methods or constructors.
-
-
Method Details
-
lookup
Returns class descriptor for specified type.- Specified by:
lookupin interfaceClassIntrospector
-
reset
public void reset()Clears all cached data.- Specified by:
resetin interfaceClassIntrospector
-