Add @JsonAutoDetect to third party lib and firebase Java lib

112 views Asked by At

How can I use jackson mix-in with firebase Java lib? I would to add @JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.ANY) to a third party lib with mix in.

Update
I create a mix in and a module:

public interface CustomTabMixIn {
    @JsonIgnore boolean isCustomObject();
} 

public class SFMetadataModule extends SimpleModule
{
  public SFMetadataModule() {
    super("SF-Metadata", new Version(0,0,1,null));
  }
  @Override
  public void setupModule(SetupContext context)
  {
    context.setMixInAnnotations(com.sforce.soap.metadata.CustomTab.class, CustomTabMixIn.class);
  }

} 

How can I register my module with firebase?

ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new SFMetadataModule()); 
0

There are 0 answers