public interface SerializationFeature extends JsonFeature
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARTIFACT_ID_MICRONAUT_JACKSON_CORE |
static java.lang.String |
MICRONAUT_SERIALIZATION |
ARTIFACT_ID_MICRONAUT_JACKSON_DATABIND, DEPENDENCY_MICRONAUT_JACKSON_DATABIND| Modifier and Type | Method and Description |
|---|---|
default void |
apply(GeneratorContext generatorContext)
If this method is called for a given feature that means the feature was explicitly selected,
included by default as a result of
DefaultFeature.shouldApply(ApplicationType, io.micronaut.starter.options.Options, java.util.Set),
or added explicitly by another feature through FeatureContext.addFeature(Feature). |
default java.util.List<Dependency.Builder> |
dependencies(GeneratorContext generatorContext) |
default java.lang.String |
getCategory() |
default java.lang.String |
getMicronautDocumentation() |
java.lang.String |
getModule() |
default Dependency.Builder |
micronautRuntimeDependency(GeneratorContext generatorContext) |
default Dependency.Builder |
serdeModule(GeneratorContext generatorContext) |
default Dependency.Builder |
serdeProcessor() |
java.util.List<Substitution> |
substitutions(GeneratorContext generatorContext) |
default boolean |
supports(ApplicationType applicationType)
This method must be implemented to ensure it is only selectable for the desired
application types.
|
getDescription, getName, getOrder, getThirdPartyDocumentation, getTitle, isCommunity, isPreview, isVisible, processSelectedFeaturesstatic final java.lang.String MICRONAUT_SERIALIZATION
static final java.lang.String ARTIFACT_ID_MICRONAUT_JACKSON_CORE
default java.lang.String getCategory()
getCategory in interface FeatureCategory to which the feature belongs to.default java.lang.String getMicronautDocumentation()
getMicronautDocumentation in interface Featuredefault boolean supports(ApplicationType applicationType)
Featuredefault void apply(GeneratorContext generatorContext)
FeatureDefaultFeature.shouldApply(ApplicationType, io.micronaut.starter.options.Options, java.util.Set),
or added explicitly by another feature through FeatureContext.addFeature(Feature).
At this point the feature list is set and cannot change.
This method can be implemented to modify the generated project. The feature can add templates
by executing GeneratorContext.addTemplate(String, io.micronaut.starter.template.Template), modify configuration
by modifying GeneratorContext.getConfiguration() or GeneratorContext.getBootstrapConfiguration(), or modify build properties through GeneratorContext.getBuildProperties().@NonNull default java.util.List<Dependency.Builder> dependencies(@NonNull GeneratorContext generatorContext)
@NonNull default Dependency.Builder micronautRuntimeDependency(@NonNull GeneratorContext generatorContext)
@NonNull default Dependency.Builder serdeModule(@NonNull GeneratorContext generatorContext)
@NonNull default Dependency.Builder serdeProcessor()
java.lang.String getModule()
@NonNull java.util.List<Substitution> substitutions(@NonNull GeneratorContext generatorContext)