Class ChannelJsonConverter
java.lang.Object
org.flowable.eventregistry.json.converter.ChannelJsonConverter
- Author:
- Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,
Class<? extends ChannelModel>> protected com.fasterxml.jackson.databind.ObjectMapper
protected List<ChannelValidator>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addInboundChannelModelClass
(String type, Class<? extends InboundChannelModel> channelModelClass) void
addOutboundChannelModelClass
(String type, Class<? extends OutboundChannelModel> channelModelClass) void
addValidator
(ChannelValidator validator) convertToChannelModel
(String modelJson) convertToJson
(ChannelModel definition) protected Class<? extends ChannelModel>
determineChannelModelClass
(com.fasterxml.jackson.databind.JsonNode channelNode) Map<String,
Class<? extends ChannelModel>> void
setChannelModelClasses
(Map<String, Class<? extends ChannelModel>> channelModelClasses) void
setValidators
(List<ChannelValidator> validators) protected void
validateChannel
(ChannelModel channelModel)
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
validators
-
channelModelClasses
-
-
Constructor Details
-
ChannelJsonConverter
public ChannelJsonConverter() -
ChannelJsonConverter
-
-
Method Details
-
addDefaultChannelModelClasses
protected void addDefaultChannelModelClasses() -
convertToChannelModel
-
determineChannelModelClass
protected Class<? extends ChannelModel> determineChannelModelClass(com.fasterxml.jackson.databind.JsonNode channelNode) -
validateChannel
-
convertToJson
-
getValidators
-
addValidator
-
setValidators
-
getChannelModelClasses
-
addOutboundChannelModelClass
public void addOutboundChannelModelClass(String type, Class<? extends OutboundChannelModel> channelModelClass) -
addInboundChannelModelClass
public void addInboundChannelModelClass(String type, Class<? extends InboundChannelModel> channelModelClass) -
setChannelModelClasses
-