public class JacksonTomoko extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> SpecificationDescriptor<T> |
descriptorFor(Class<T> specificationClass)
Used to retrieve descriptors for handlers found in the provided class.
|
static JacksonTomoko |
instance()
Creates a new JacksonTomoko instance using a default
ObjectMapper. |
static JacksonTomoko |
instance(com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JacksonTomoko instance using the provided mapper.
|
static JacksonTomoko |
instance(TomokoConfigurationBuilder configurationBuilder)
Creates a new JacksonTomoko instance using the provided configuration as the basis.
|
static JacksonTomoko |
instance(TomokoConfigurationBuilder configurationBuilder,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JacksonTomoko instance using the provided configuration as the basis.
|
Patcher |
patcher(PatcherTreeSpecification specification)
Scans the target object and registers all properly annotated handlers.
|
PatchParser |
patchParser() |
PatcherTreeSpecification |
scanHandlerTree(Object specification)
Scans the target object and registers all properly annotated handlers.
|
Patcher |
scanPatcher(Object specification)
Converts a handler tree model to a patcher.
|
HandlerConfigurationDSL |
specificationDsl()
Allows registering handlers programmatically in a type-safe way.
|
public static JacksonTomoko instance()
ObjectMapper. Automatically registers the JacksonTreeParser instance.public static JacksonTomoko instance(com.fasterxml.jackson.databind.ObjectMapper mapper)
JacksonTreeParser instance.mapper - public static JacksonTomoko instance(TomokoConfigurationBuilder configurationBuilder)
JacksonTreeParser instance.configurationBuilder - public static JacksonTomoko instance(TomokoConfigurationBuilder configurationBuilder, com.fasterxml.jackson.databind.ObjectMapper mapper)
JacksonTreeParser instance using the provided mapper.configurationBuilder - mapper - public HandlerConfigurationDSL specificationDsl()
io.qubite.tomoko.specification.dslpublic PatcherTreeSpecification scanHandlerTree(Object specification)
specification - public Patcher patcher(PatcherTreeSpecification specification)
specification - public Patcher scanPatcher(Object specification)
specification - public <T> SpecificationDescriptor<T> descriptorFor(Class<T> specificationClass)
T - specificationClass - class with methods annotated as handlerspublic PatchParser patchParser()
Copyright © 2017. All rights reserved.