We need some logic to be done before/after call of renderer for direct area rendering implementation. Although we have tried several places where it can be done, we agreed on usage of listeners, see DAR review II.
Such set of listeners is called before/after every call of render and we can reuse listeners in the future for different purposes (for example push/pop actions can be called in appropriate listeners).
- Register such listener in rendering engine config (RenderingContext).
- New instance of such listener per request.
- Registering of multiple listeners is possible.
- Listener is registered and instantiated by rendering engine and passed into rend. context.