/** * Notifies life-cycle beans of grid event. * * @param evt Grid event. */ @SuppressWarnings({"CatchGenericClass"}) private void notifyLifecycleBeansEx(GridLifecycleEventType evt) { try { notifyLifecycleBeans(evt); } // Catch generic throwable to secure against user assertions. catch (Throwable e) { U.error(log, "Failed to notify lifecycle bean (safely ignored) [evt=" + evt + ", gridName=" + gridName + ']', e); if (e instanceof Error) throw (Error)e; } }
notifyLifecycleBeans(BEFORE_GRID_START); notifyLifecycleBeans(AFTER_GRID_START);