Package org.jboss.modcluster.container

Examples of org.jboss.modcluster.container.Context


        return new UndertowContext(deployment, new UndertowHost(host, new UndertowEngine(host.getServer().getValue(), this.service.getValue(), this.connector)));
    }

    @Override
    public void onDeploymentStart(Deployment deployment, Host host) {
        Context context = this.createContext(deployment, host);
        this.eventHandler.getValue().add(context);

        // TODO break into onDeploymentAdd once implemented in Undertow
        this.eventHandler.getValue().start(context);
    }
View Full Code Here


        this.eventHandler.getValue().start(context);
    }

    @Override
    public 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);
    }
View Full Code Here

        this.undertowHost.registerDeployment(deployment, handler);
       
        Iterator<Context> result = this.host.getContexts().iterator();
       
        assertTrue(result.hasNext());
        Context context = result.next();
        assertSame(this.host, context.getHost());
        assertSame(expectedPath, context.getPath());
        assertFalse(result.hasNext());
    }
View Full Code Here

       
        when(deployment.getDeploymentInfo()).thenReturn(info);
       
        this.undertowHost.registerDeployment(deployment, handler);
       
        Context result = this.host.findContext(expectedPath);
       
        assertSame(this.host, result.getHost());
        assertSame(expectedPath, result.getPath());
       
        result = this.host.findContext("unknown");
       
        assertNull(result);
    }
View Full Code Here

TOP

Related Classes of org.jboss.modcluster.container.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.