Interface IntermediatePlugin<T>

Type Parameters:
T - The configuration object class to be passed into the MagpiePlugin.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 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 Details

    • accept

      void accept(MagpieEnvelope env, Emitter emitter)
      Accept incoming assets for processing and emit downstream.
      Parameters:
      env - The MagpieEnvelope provided by a higher layer plugin.
      emitter - The Emitter to pass processed envelopes downstream.