public class ModuleTypeConversionPlugin extends AbstractPlugin
Plugin for processing module message conversion parameters (inputType and outputType). Accepts a list of
AbstractFromMessageConverters which are always available along with an optional list of custom converters
which may be provided by end users.PLUGIN_CONTEXT_CONFIG_ROOT| Constructor and Description |
|---|
ModuleTypeConversionPlugin(java.util.Collection<AbstractFromMessageConverter> converters,
java.util.Collection<AbstractFromMessageConverter> customConverters) |
| Modifier and Type | Method and Description |
|---|---|
ModuleTypeConversionSupport |
getModuleTypeConversionSupport()
Get the underlying
ModuleTypeConversionSupport which could be
further used by any other plugin that requires to apply module type conversion explicitly. |
void |
postProcessModule(Module module)
Apply changes to the module after it is initialized i.e. after its context is refreshed, but before it is
started.
|
boolean |
supports(Module module)
Check if the module is supported by the plugin.
|
beforeShutdown, getApplicationContext, getOrder, preProcessModule, removeModule, setApplicationContextpublic ModuleTypeConversionPlugin(java.util.Collection<AbstractFromMessageConverter> converters, java.util.Collection<AbstractFromMessageConverter> customConverters)
converters - a list of default converterscustomConverters - a list of custom converters to extend the default converterspublic ModuleTypeConversionSupport getModuleTypeConversionSupport()
ModuleTypeConversionSupport which could be
further used by any other plugin that requires to apply module type conversion explicitly.
See SparkStreamingChannelpublic void postProcessModule(Module module)
PluginpostProcessModule in interface PluginpostProcessModule in class AbstractPluginmodule - the module to post-process