Class PipelineRegistrarImpl

java.lang.Object
com.caplin.transformer.module.pipeline.PipelineRegistrarImpl
All Implemented Interfaces:
PipelineRegistrar

public class PipelineRegistrarImpl extends Object implements PipelineRegistrar
  • Constructor Details

    • PipelineRegistrarImpl

      public PipelineRegistrarImpl(Logger logger)
  • Method Details

    • registerPipelineMethod

      public void registerPipelineMethod(Object object, String methodName) throws NoSuchMethodException
      Description copied from interface: PipelineRegistrar
      Registers a function with the name pipelineFunctionName with the Pipeline module so that pipelines can call into Java Transformer modules. The registrar looks up all methods with methodName on the class of object and checks their signatures against valid types defined in PipelineType. All methods passing this validity check will get registered with pipelines. In case of methods being overloaded, the correct one to call will be determined at runtime, with a few limitations - see Notes.
      Specified by:
      registerPipelineMethod in interface PipelineRegistrar
      Parameters:
      object - object where the method will get called on
      methodName - method to be called on the provided object
      Throws:
      NoSuchMethodException - if no method with the given name can be found
    • registerPipelineMethod

      public void registerPipelineMethod(Object callback, String pipelineFunctionName, String methodName) throws NoSuchMethodException
      Description copied from interface: PipelineRegistrar
      Registers a function with the name pipelineFunctionName with the Pipeline module so that pipelines can call into Java Transformer modules. The registrar looks up all methods with methodName on the class of object and checks their signatures against valid types defined in PipelineType. All methods passing this validity check will get registered with pipelines. In case of methods being overloaded, the correct one to call will be determined at runtime, with a few limitations - see Notes.
      Specified by:
      registerPipelineMethod in interface PipelineRegistrar
      Parameters:
      callback - object where the method will get called on
      pipelineFunctionName - function name registered with pipelines
      methodName - method to be called on the provided object
      Throws:
      NoSuchMethodException - if no method with the given name can be found