java110-core/src/main/java/com/java110/core/event/app/AppEventPublishing.java
/**
     * Invoke the given listener with the given event.
     * @param listener the ApplicationListener to invoke
     * @param event the current event to propagate
     * @since 4.1
     */
Invoke the given listener with the given event.
@param listener the ApplicationListener to invoke
@param event the current event to propagate
@since 4.1
Invoke the given listener with the given event . @param listener the ApplicationListener to invoke @param event the current event to propagate @since 4 . 1
@SuppressWarnings({"unchecked", "rawtypes"})
    protected static void invokeListener(AppListener listener, AppEvent event) {
        try {
            listener.soDataService(event);
        }catch (Exception e){
            LoggerEngine.error("发布侦听失败",e);
            throw new RuntimeException(e.getMessage());
        }
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) protected static void invokeListener ( AppListener listener , AppEvent event ) { try { listener . soDataService ( event ) ; } catch ( Exception e ) { LoggerEngine . error ( "发布侦听失败",e); throw new RuntimeException ( e . getMessage ( ) ) ; } }
Invoke the given listener with the given event.
Invoke the given listener with the given event .