Package io.openraven.magpie.api
Interface IntermediatePlugin<T>
- Type Parameters:
T- The configuration object class to be passed into theMagpiePlugin.init(Object config, Logger logger)init} method. This is a developer-defined Jackson-serializable POJO and should be distributed with the plugin.
- All Superinterfaces:
MagpiePlugin<T>
IntermediatePlugin implementations provide the glue between Origin (discovery) plugins and Terminal (output) plugins. They may
perform more in-depth discovery on assets or do schema transformations to support specific downstream schemas. They
both accept incoming
envelopes and output via the provided Emitter. Plugins need not emit anything (acting as a filter)
or may emit multiple downstream envelopes for a single received envelope.- Author:
- Jason Nichols (jason@openraven.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MagpieEnvelope env, Emitter emitter) Accept incoming assets for processing and emit downstream.Methods inherited from interface io.openraven.magpie.api.MagpiePlugin
configType, id, init, shutdown
-
Method Details
-
accept
Accept incoming assets for processing and emit downstream.- Parameters:
env- TheMagpieEnvelopeprovided by a higher layer plugin.emitter- TheEmitterto pass processed envelopes downstream.
-