Search in sources :

Example 1 with PrepareOperations

use of com.agiletec.apsadmin.system.dispatcher.PrepareOperations in project entando-core by entando.

the class Struts2ServletDispatcher method init.

@Override
public void init(ServletConfig filterConfig) throws ServletException {
    InitOperations init = new InitOperations();
    Dispatcher dispatcher = null;
    try {
        ServletHostConfig config = new ServletHostConfig(filterConfig);
        init.initLogging(config);
        dispatcher = init.initDispatcher(config);
        init.initStaticContentLoader(config, dispatcher);
        prepare = new PrepareOperations(dispatcher);
        execute = new ExecuteOperations(dispatcher);
    } finally {
        if (dispatcher != null) {
            dispatcher.cleanUpAfterInit();
        }
        init.cleanup();
    }
}
Also used : PrepareOperations(com.agiletec.apsadmin.system.dispatcher.PrepareOperations) InitOperations(com.agiletec.apsadmin.system.dispatcher.InitOperations) ExecuteOperations(org.apache.struts2.dispatcher.ExecuteOperations) Dispatcher(org.apache.struts2.dispatcher.Dispatcher) ServletHostConfig(org.apache.struts2.dispatcher.servlet.ServletHostConfig)

Aggregations

InitOperations (com.agiletec.apsadmin.system.dispatcher.InitOperations)1 PrepareOperations (com.agiletec.apsadmin.system.dispatcher.PrepareOperations)1 Dispatcher (org.apache.struts2.dispatcher.Dispatcher)1 ExecuteOperations (org.apache.struts2.dispatcher.ExecuteOperations)1 ServletHostConfig (org.apache.struts2.dispatcher.servlet.ServletHostConfig)1