Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source.
  * Copyright 2012 Red Hat, Inc., and individual contributors
  * as indicated by the @author tags.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package io.undertow.servlet.api;
Manager that can be used to deploy and undeploy a servlet deployment.

Stuart Douglas
public interface DeploymentManager {

Perform the initial deployment. The builds all the internal metadata needed to support the servlet deployment, but will not actually start any servlets
    void deploy();

Starts the container. Any Servlets with init on startup will be created here. This method returns the servlet path handler, which must then be added into the appropriate place in the path handler tree.
    HttpHandler start() throws ServletException;
    void stop() throws ServletException;
    void undeploy();
    State getState();

    public static enum State {
New to GrepCode? Check out our FAQ X