Search in sources :

Example 1 with AppContextStartedEvent

use of com.haulmont.cuba.core.sys.events.AppContextStartedEvent in project cuba by cuba-platform.

the class AppContext method startContext.

static void startContext() {
    if (started)
        return;
    started = true;
    listeners.sort(new OrderComparator());
    for (Listener listener : listeners) {
        listener.applicationStarted();
    }
    Events events = (Events) getApplicationContext().getBean(Events.NAME);
    events.publish(new AppContextStartedEvent(context));
    listenersNotified = true;
}
Also used : Events(com.haulmont.cuba.core.global.Events) AppContextStartedEvent(com.haulmont.cuba.core.sys.events.AppContextStartedEvent) OrderComparator(org.springframework.core.OrderComparator)

Aggregations

Events (com.haulmont.cuba.core.global.Events)1 AppContextStartedEvent (com.haulmont.cuba.core.sys.events.AppContextStartedEvent)1 OrderComparator (org.springframework.core.OrderComparator)1