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 Type
    Method
    Description
    Returns a sanitized copy of event.
  • Method Details

    • sanitize

      PolarisEvent sanitize(PolarisEvent event)
      Returns a sanitized copy of event. The original event is not modified. The returned event MUST be safe to deliver to all listeners that have not opted in via RawEventAccess.