Package com.atlassian.bamboo.jsonator
Class DefaultIntrospector
- java.lang.Object
-
- com.atlassian.bamboo.jsonator.DefaultIntrospector
-
- All Implemented Interfaces:
Introspector
public class DefaultIntrospector extends Object implements Introspector
Used by the Jsonator. Allows creating JSON intelligently from java objects.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultIntrospectorgetInstance()@NotNull Map<String,Object>getProperties(@NotNull Object bean, @Nullable Class<? extends Annotation> annotationFilter)Return the properties of the bean as property names mapped to property value Objects.
-
-
-
Method Detail
-
getInstance
public static DefaultIntrospector getInstance()
-
getProperties
@NotNull public @NotNull Map<String,Object> getProperties(@NotNull @NotNull Object bean, @Nullable @Nullable Class<? extends Annotation> annotationFilter)
Description copied from interface:IntrospectorReturn the properties of the bean as property names mapped to property value Objects.
Properties are defined by getter methods of the form getX or isX, with no parameters.- Specified by:
getPropertiesin interfaceIntrospector- Returns:
- map of property name Strings to property values.
-
-