public class PossiblyStrictPreferringFieldsVisibilityChecker extends java.lang.Object implements org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
BidiSerialization.isStrictSerialization()
is enabled in which case public fields or annotations must be used.
the reason for this change to visibility
is that getters might generate a copy, resulting in infinite loops, whereas field access should never do so.
(see e.g. test in BrooklynJacksonSerializerTest
which uses a sensor+config object whose getTypeToken
causes infinite recursion)
Constructor and Description |
---|
PossiblyStrictPreferringFieldsVisibilityChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCreatorVisible(org.codehaus.jackson.map.introspect.AnnotatedMember m) |
boolean |
isCreatorVisible(java.lang.reflect.Member m) |
boolean |
isFieldVisible(org.codehaus.jackson.map.introspect.AnnotatedField f) |
boolean |
isFieldVisible(java.lang.reflect.Field f) |
boolean |
isGetterVisible(org.codehaus.jackson.map.introspect.AnnotatedMethod m) |
boolean |
isGetterVisible(java.lang.reflect.Method m) |
boolean |
isIsGetterVisible(org.codehaus.jackson.map.introspect.AnnotatedMethod m) |
boolean |
isIsGetterVisible(java.lang.reflect.Method m) |
boolean |
isSetterVisible(org.codehaus.jackson.map.introspect.AnnotatedMethod m) |
boolean |
isSetterVisible(java.lang.reflect.Method m) |
PossiblyStrictPreferringFieldsVisibilityChecker |
with(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
PossiblyStrictPreferringFieldsVisibilityChecker |
with(org.codehaus.jackson.annotate.JsonAutoDetect ann) |
PossiblyStrictPreferringFieldsVisibilityChecker |
withCreatorVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
PossiblyStrictPreferringFieldsVisibilityChecker |
withFieldVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
PossiblyStrictPreferringFieldsVisibilityChecker |
withGetterVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
PossiblyStrictPreferringFieldsVisibilityChecker |
withIsGetterVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
PossiblyStrictPreferringFieldsVisibilityChecker |
withSetterVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
PossiblyStrictPreferringFieldsVisibilityChecker |
withVisibility(org.codehaus.jackson.annotate.JsonMethod method,
org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v) |
public PossiblyStrictPreferringFieldsVisibilityChecker()
public PossiblyStrictPreferringFieldsVisibilityChecker with(org.codehaus.jackson.annotate.JsonAutoDetect ann)
with
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker with(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
with
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker withVisibility(org.codehaus.jackson.annotate.JsonMethod method, org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
withVisibility
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker withGetterVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
withGetterVisibility
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker withIsGetterVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
withIsGetterVisibility
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker withSetterVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
withSetterVisibility
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker withCreatorVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
withCreatorVisibility
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public PossiblyStrictPreferringFieldsVisibilityChecker withFieldVisibility(org.codehaus.jackson.annotate.JsonAutoDetect.Visibility v)
withFieldVisibility
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isGetterVisible(java.lang.reflect.Method m)
isGetterVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isGetterVisible(org.codehaus.jackson.map.introspect.AnnotatedMethod m)
isGetterVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isIsGetterVisible(java.lang.reflect.Method m)
isIsGetterVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isIsGetterVisible(org.codehaus.jackson.map.introspect.AnnotatedMethod m)
isIsGetterVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isSetterVisible(java.lang.reflect.Method m)
isSetterVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isSetterVisible(org.codehaus.jackson.map.introspect.AnnotatedMethod m)
isSetterVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isCreatorVisible(java.lang.reflect.Member m)
isCreatorVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isCreatorVisible(org.codehaus.jackson.map.introspect.AnnotatedMember m)
isCreatorVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isFieldVisible(java.lang.reflect.Field f)
isFieldVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>
public boolean isFieldVisible(org.codehaus.jackson.map.introspect.AnnotatedField f)
isFieldVisible
in interface org.codehaus.jackson.map.introspect.VisibilityChecker<PossiblyStrictPreferringFieldsVisibilityChecker>