I have one field which is a composition of two values. This is the field that gets serialized to/from JSON and works great.
public String getRevisions() { return revisions; }
public void setRevisions(String revisions) { this.revisions = revisions; }
I added two helper methods to retrieve the separate values, but I don't want them serialized to JSON.
public String getCurrentRevision() { ... return first revision ... }
public String getPreviousRevision() { ... return second revision ... }
Is there a way I can tell java.beans.Introspector
to ignore these additional getters when building the BeanInfo
via getBeanInfo()
? An annotation would be lovely, and I'm really hoping to avoid having to manually create my own BeanInfo
for it.