Features¶
What are the features?
Extractors
Transformers
Loaders
Hooks
Hooks¶
Hooks are a way to add custom functionality to the system. They are called at various points in the process, and can be used perform custom actions.
Hooks are added to the system by creating a class that implements the corresponding hook interface.
A single hook can implement multiple interfaces, and can be used to perform multiple actions.
There are several hooks that can be used:
BeforePipelineHook -> It is called before the pipeline is executed.
BeforePipelineHookInterface
AfterBulkHook -> It is called after each bulk has been processed.
AfterBulkHookInterface
AfterPipelineHook -> It is called after the pipeline has been executed.
AfterPipelineHookInterface
To add a hook to the system, you need to create also a HookPlugin
class
that will be used to register the hook in the system.
The HookPlugin
class should implement the HookPluginInterface
and
should be registered in the SpringbokDependencyProvider@getHookPlugins
method.
Further reading:
See How to write a new hook plugin for more information on how to write a hook plugin.