Interface sap.ui.core.mvc.View.PreprocessorModule: sap/ui/core/mvc/View
Interface for Preprocessor implementations that can be hooked in the view life cycle.
There are two possibilities to use the preprocessor. It can be either passed to the view via the mSettings.preprocessors object where it is the executed only for this instance, or by the registerPreprocessor method of the view type. Currently this is available only for XMLViews (as of version 1.30).
|object||vSource||the source to be processed|
|object||oViewInfo||identification information about the calling instance|
|string||oViewInfo.componentId||the id of the owning Component|
|string||oViewInfo.caller||identifies the caller of this preprocessor; basis for log or exception messages|
|object||mSettings?||settings object containing the settings provided with the preprocessor|
|object|Promise||the processed resource or a promise which resolves with the processed resource or an error according to the declared preprocessor sync capability|