Interface EventSanitizer
- All Known Implementing Classes:
DefaultEventSanitizer
public interface EventSanitizer
Global, dispatcher-enforced sanitizer for events. Invoked once per listener delivery from
PolarisEventListeners.deliverEvent, before each listener that has not opted in via RawEventAccess. Each invocation produces a fresh sanitized copy; the original event is never
mutated.
Implementations are responsible for both stripping disallowed attributes and producing any derived attributes that downstream listeners depend on. Replacing this bean replaces the entire global sanitization policy — attribute denial and derivation.
-
Method Summary
Modifier and TypeMethodDescriptionsanitize(PolarisEvent event) Returns a sanitized copy ofevent.
-
Method Details
-
sanitize
Returns a sanitized copy ofevent. The original event is not modified. The returned event MUST be safe to deliver to all listeners that have not opted in viaRawEventAccess.
-