Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.9.3
-
None
-
None
Description
By default, DefaultBeanIntrospector is used as introspector. Turns out, I need to set a stopClass during introspection. Instead of removing DefaultBeanIntrospector instance and then add a new one. I would like to set my very own introspectors in ctor. I can see from the latest version that PropertyUtilsBean#resetBeanIntrospectors exclude by default class property using SuppressPropertiesBeanIntrospector, I have two suggestions, either:
- DefaultBeanIntrospector uses Object as a stop class
- Define a StopClassBeanIntrospector allowing to define a stopClass (or add a new method getStopClass into IntrospectionContext and by default returns Object.class, no breaking change)
- Or having both?
WDYT?