use of org.jboss.as.server.suspend.SuspendController.State in project wildfly by wildfly.
the class UndertowEventHandlerAdapterService method onStart.
private synchronized void onStart(Context context) {
ContainerEventHandler handler = this.configuration.getContainerEventHandler();
handler.add(context);
State state = this.configuration.getSuspendController().getState();
// TODO break into onDeploymentAdd once implemented in Undertow
if (state == State.RUNNING) {
handler.start(context);
}
this.contexts.add(context);
}
Aggregations