Class RestJacksonModule
- java.lang.Object
- 
- org.apache.tapestry5.rest.jackson.modules.RestJacksonModule
 
- 
 public class RestJacksonModule extends java.lang.Object Defines services and and contributions for the Tapestry integration with Jackson Databind. Besides contributing a fallbackObjectMapperSource, it also creates aComponentEventResultProcessorfor all classes returned byMappedEntityManager.getEntities().- Since:
- 5.8.0
 
- 
- 
Constructor SummaryConstructors Constructor Description RestJacksonModule()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectMapperSourcebuildObjectMapperSource(java.util.List<ObjectMapperSource> configuration, ChainBuilder chainBuilder)Builds theObjectMapperSourceservice.static com.github.victools.jsonschema.generator.SchemaGeneratorbuildSchemaGenerator()Provides the defaultSchemaGeneratorinstance with a default configuration.static voidcontributeComponentEventResultProcessor(MappedConfiguration<java.lang.Class,ComponentEventResultProcessor> configuration, MappedEntityManager mappedEntityManager, Response response, ObjectMapperSource objectMapperSource, java.lang.String outputEncoding)Adds a (entity class, JacksonComponentEventResultProcessor) for each entity class returned byMappedEntityManager.getEntities().static voidcontributeHttpRequestBodyConverter(OrderedConfiguration<HttpRequestBodyConverter> configuration)ContributesJacksonHttpRequestBodyConverterto theHttpRequestBodyConverterservice.static voidcontributeObjectMapperSource(OrderedConfiguration<ObjectMapperSource> configuration)ContributesFallbackObjectMapperSource(contribution idFallback) so we guarantee there's always anObjectMapperprovided for any type.static voidcontributeOpenApiTypeDescriber(OrderedConfiguration<OpenApiTypeDescriber> configuration)ContributesJacksonOpenApiTypeDescriberto theOpenApiTypeDescriberservice to generate J.
 
- 
- 
- 
Constructor Detail- 
RestJacksonModulepublic RestJacksonModule() 
 
- 
 - 
Method Detail- 
contributeObjectMapperSourcepublic static void contributeObjectMapperSource(OrderedConfiguration<ObjectMapperSource> configuration) ContributesFallbackObjectMapperSource(contribution idFallback) so we guarantee there's always anObjectMapperprovided for any type.
 - 
contributeComponentEventResultProcessorpublic static void contributeComponentEventResultProcessor(MappedConfiguration<java.lang.Class,ComponentEventResultProcessor> configuration, MappedEntityManager mappedEntityManager, Response response, ObjectMapperSource objectMapperSource, @Symbol("tapestry.charset") java.lang.String outputEncoding) Adds a (entity class, JacksonComponentEventResultProcessor) for each entity class returned byMappedEntityManager.getEntities().
 - 
contributeHttpRequestBodyConverterpublic static void contributeHttpRequestBodyConverter(OrderedConfiguration<HttpRequestBodyConverter> configuration) ContributesJacksonHttpRequestBodyConverterto theHttpRequestBodyConverterservice.
 - 
buildObjectMapperSourcepublic static ObjectMapperSource buildObjectMapperSource(java.util.List<ObjectMapperSource> configuration, ChainBuilder chainBuilder) Builds theObjectMapperSourceservice.
 - 
buildSchemaGeneratorpublic static com.github.victools.jsonschema.generator.SchemaGenerator buildSchemaGenerator() Provides the defaultSchemaGeneratorinstance with a default configuration.
 - 
contributeOpenApiTypeDescriberpublic static void contributeOpenApiTypeDescriber(OrderedConfiguration<OpenApiTypeDescriber> configuration) ContributesJacksonOpenApiTypeDescriberto theOpenApiTypeDescriberservice to generate J.
 
- 
 
-