Search in sources :

Example 6 with Context

use of org.jboss.modcluster.container.Context in project wildfly by wildfly.

the class UndertowEventHandlerAdapter method onDeploymentStop.

@Override
public synchronized void onDeploymentStop(Deployment deployment, Host host) {
    Context context = this.createContext(deployment, host);
    this.eventHandler.getValue().stop(context);
    // TODO break into onDeploymentRemove once implemented in Undertow
    this.eventHandler.getValue().remove(context);
    contexts.remove(context);
}
Also used : StopContext(org.jboss.msc.service.StopContext) Context(org.jboss.modcluster.container.Context) StartContext(org.jboss.msc.service.StartContext)

Aggregations

Context (org.jboss.modcluster.container.Context)6 StartContext (org.jboss.msc.service.StartContext)4 StopContext (org.jboss.msc.service.StopContext)4 HttpHandler (io.undertow.server.HttpHandler)2 Deployment (io.undertow.servlet.api.Deployment)2 DeploymentInfo (io.undertow.servlet.api.DeploymentInfo)2 Test (org.junit.Test)2