Search in sources :

Example 1 with State

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);
}
Also used : ContainerEventHandler(org.jboss.modcluster.container.ContainerEventHandler) State(org.jboss.as.server.suspend.SuspendController.State)

Aggregations

State (org.jboss.as.server.suspend.SuspendController.State)1 ContainerEventHandler (org.jboss.modcluster.container.ContainerEventHandler)1