Class EventHelper


  • public final class EventHelper
    extends Object
    Helper methods for event handler
    Author:
    hengsin
    • Method Detail

      • getPO

        public static PO getPO​(org.osgi.service.event.Event event)
        Parameters:
        event -
        Returns:
        PO
      • getProcessInfo

        public static ProcessInfo getProcessInfo​(org.osgi.service.event.Event event)
        Parameters:
        event -
        Returns:
        ProcessInfo
      • getEventData

        public static <T> T getEventData​(org.osgi.service.event.Event event)
        Type Parameters:
        T -
        Parameters:
        event -
      • getEventProperty

        public static <T> T getEventProperty​(org.osgi.service.event.Event event,
                                             String property)
        Type Parameters:
        T -
        Parameters:
        event -
        property -
      • addError

        public static void addError​(org.osgi.service.event.Event event,
                                    Throwable e)
        Parameters:
        event -
        e -
      • addErrorMessage

        public static void addErrorMessage​(org.osgi.service.event.Event event,
                                           String errorMessage)
        Parameters:
        event -
        errorMessage -