
com.fasterxml.jackson.module.paramnames.ParameterNamesModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hello-world-plugin Show documentation
Show all versions of hello-world-plugin Show documentation
Kill Bill Hello World plugin
The newest version!
package com.fasterxml.jackson.module.paramnames;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.module.SimpleModule;
public class ParameterNamesModule extends SimpleModule
{
private static final long serialVersionUID = 1L;
private final JsonCreator.Mode creatorBinding;
public ParameterNamesModule(JsonCreator.Mode creatorBinding) {
super(PackageVersion.VERSION);
this.creatorBinding = creatorBinding;
}
public ParameterNamesModule() {
super(PackageVersion.VERSION);
this.creatorBinding = null;
}
@Override
public void setupModule(SetupContext context) {
super.setupModule(context);
context.insertAnnotationIntrospector(new ParameterNamesAnnotationIntrospector(creatorBinding, new ParameterExtractor()));
}
@Override
public int hashCode() { return getClass().hashCode(); }
@Override
public boolean equals(Object o) { return this == o; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy