org.apache.struts2.dispatcher.ng
Class InitOperations

java.lang.Object
  extended by org.apache.struts2.dispatcher.ng.InitOperations

public class InitOperations
extends Object

Contains initialization operations


Constructor Summary
InitOperations()
           
 
Method Summary
 void cleanup()
           
private  Dispatcher createDispatcher(HostConfig filterConfig)
          Create a Dispatcher
 Dispatcher findDispatcherOnThread()
           
 Dispatcher initDispatcher(HostConfig filterConfig)
          Creates and initializes the dispatcher
 void initLogging(HostConfig filterConfig)
          Initializes the internal Struts logging
 StaticContentLoader initStaticContentLoader(HostConfig filterConfig, Dispatcher dispatcher)
          Initializes the static content loader with the filter configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitOperations

public InitOperations()
Method Detail

initLogging

public void initLogging(HostConfig filterConfig)
Initializes the internal Struts logging


initDispatcher

public Dispatcher initDispatcher(HostConfig filterConfig)
Creates and initializes the dispatcher


initStaticContentLoader

public StaticContentLoader initStaticContentLoader(HostConfig filterConfig,
                                                   Dispatcher dispatcher)
Initializes the static content loader with the filter configuration


findDispatcherOnThread

public Dispatcher findDispatcherOnThread()
Returns:
The dispatcher on the thread.
Throws:
IllegalStateException - If there is no dispatcher available

createDispatcher

private Dispatcher createDispatcher(HostConfig filterConfig)
Create a Dispatcher


cleanup

public void cleanup()


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.