BaseProcessor.append_subprocessor

BaseProcessor.append_subprocessor#

BaseProcessor.append_subprocessor(sp_name: str, sp_obj: BaseProcessor | Type[BaseProcessor] | ProcessorFactory) None[source]#

Appends instantiation of processor to subprocessors attribute.

If subprocessor object is provided as:

  • object - processor object (with updated processor_path attribute) added to subprocessors.

  • class - class is instantiated, with resultant object added subprocessors

  • factory - class selected from factory - using value from self.context for target processor_path - and instantiated, with resultant object added subprocessors

Parameters:
  • sp_name – name of subprocessor

  • sp_obj – subprocessor object