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>
public interface IntermediatePlugin<T> extends 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 incomingenvelopesand output via the providedEmitter. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(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 Detail
-
accept
void accept(MagpieEnvelope env, Emitter emitter)
Accept incoming assets for processing and emit downstream.- Parameters:
env- TheMagpieEnvelopeprovided by a higher layer plugin.emitter- TheEmitterto pass processed envelopes downstream.
-
-