Class KebabCasePropertyBeanIntrospector
java.lang.Object
org.springframework.cloud.appbroker.extensions.support.KebabCasePropertyBeanIntrospector
- All Implemented Interfaces:
org.apache.commons.beanutils.BeanIntrospector
public class KebabCasePropertyBeanIntrospector
extends Object
implements org.apache.commons.beanutils.BeanIntrospector
An implementation of the
BeanIntrospector
interface that provides property
descriptors following the kebab-case convention.
This implementation is intended to collaborate with a DefaultBeanIntrospector
object. Best results are achieved by adding this instance as custom
BeanIntrospector
after the DefaultBeanIntrospector
object.
- Author:
- Scott Frederick
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
introspect
(org.apache.commons.beanutils.IntrospectionContext context) Performs introspection.
-
Constructor Details
-
KebabCasePropertyBeanIntrospector
public KebabCasePropertyBeanIntrospector()
-
-
Method Details
-
introspect
public void introspect(org.apache.commons.beanutils.IntrospectionContext context) Performs introspection. This method scans the current class's methods for property write methods add adds a property descriptor using the kebab-case naming convention to match each property descriptor that uses the camel-case Java Bean convention.- Specified by:
introspect
in interfaceorg.apache.commons.beanutils.BeanIntrospector
- Parameters:
context
- the introspection context
-