Class PipelineRegistrarImpl
java.lang.Object
com.caplin.transformer.module.pipeline.PipelineRegistrarImpl
- All Implemented Interfaces:
PipelineRegistrar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerPipelineMethod
(Object object, String methodName) Registers a function with the name pipelineFunctionName with the Pipeline module so that pipelines can call into Java Transformer modules.void
registerPipelineMethod
(Object callback, String pipelineFunctionName, String methodName) Registers a function with the name pipelineFunctionName with the Pipeline module so that pipelines can call into Java Transformer modules.
-
Constructor Details
-
PipelineRegistrarImpl
-
-
Method Details
-
registerPipelineMethod
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 inPipelineType
. 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 interfacePipelineRegistrar
- Parameters:
object
- object where the method will get called onmethodName
- 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 inPipelineType
. 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 interfacePipelineRegistrar
- Parameters:
callback
- object where the method will get called onpipelineFunctionName
- function name registered with pipelinesmethodName
- method to be called on the provided object- Throws:
NoSuchMethodException
- if no method with the given name can be found
-