BaseProcessor.append_subprocessor#
- BaseProcessor.append_subprocessor(sp_name: str, sp_obj: BaseProcessor | Type[BaseProcessor] | ProcessorFactory) None[source]#
Appends instantiation of processor to
subprocessorsattribute.If subprocessor object is provided as:
object - processor object (with updated
processor_pathattribute) added tosubprocessors.class - class is instantiated, with resultant object added
subprocessorsfactory - class selected from factory - using value from
self.contextfor targetprocessor_path- and instantiated, with resultant object addedsubprocessors
- Parameters:
sp_name – name of subprocessor
sp_obj – subprocessor object