| java.lang.Object org.directwebremoting.impl.StartupUtil
StartupUtil | public class StartupUtil (Code) | | Some utilities to help get DWR up and running
author: Joe Walker [joe at getahead dot ltd dot uk] |
Method Summary | |
public static void | initContainerBeans(ServletConfig servletConfig, ServletContext servletContext, Container container) Get the various objects out of the
Container , and configure them. | public static HubBuilder | initHub(ServletContext servletContext, Container container) | public static ServerContextBuilder | initServerContext(ServletConfig servletConfig, ServletContext servletContext, Container container) | public static WebContextBuilder | initWebContext(ServletConfig servletConfig, ServletContext servletContext, Container container) Get the
WebContextFactory.WebContextBuilder out of the
Container , configure it (call WebContextBuilder#set()) and use it
to configure the
WebContextFactory . | public static void | logStartup(ServletConfig config) Some logging so we have a good clue what we are working with. | public static void | outOfContainerDestroy(Container container) Clean up the current thread when
StartupUtil.outOfContainerInit() has been
called. | public static Container | outOfContainerInit() A way to setup DWR outside of any Containers.
This method can also serve as a template for in container code wanting
to get DWR setup. | public static void | setupLogging(ServletConfig servletConfig, HttpServlet servlet) We have some special logging classes to maintain an optional dependence
on commons-logging. |
initContainerBeans | public static void initContainerBeans(ServletConfig servletConfig, ServletContext servletContext, Container container)(Code) | | Get the various objects out of the
Container , and configure them.
Parameters: servletConfig - The servlet configuration Parameters: servletContext - The servlet context Parameters: container - The container to save in the ServletContext |
logStartup | public static void logStartup(ServletConfig config)(Code) | | Some logging so we have a good clue what we are working with.
Parameters: config - The servlet config |
setupLogging | public static void setupLogging(ServletConfig servletConfig, HttpServlet servlet)(Code) | | We have some special logging classes to maintain an optional dependence
on commons-logging. This sets the servlet for when this is not available.
Parameters: servletConfig - The servlet configuration Parameters: servlet - The servlet that we are running under |
|
|