|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.StartupUtil
public class StartupUtil
Some utilities to help get DWR up and running
| Constructor Summary | |
|---|---|
StartupUtil()
|
|
| Method Summary | |
|---|---|
static void |
initContainerBeans(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
Get the various objects out of the Container, and configure them. |
static HubFactory.HubBuilder |
initHub(javax.servlet.ServletContext servletContext,
Container container)
Deprecated. Use initContainerBeans(ServletConfig, ServletContext, Container) |
static ServerContextFactory.ServerContextBuilder |
initServerContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
Deprecated. Use initContainerBeans(ServletConfig, ServletContext, Container) |
static WebContextFactory.WebContextBuilder |
initWebContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
Deprecated. Use initContainerBeans(ServletConfig, ServletContext, Container) |
static void |
logStartup(javax.servlet.ServletConfig config)
Some logging so we have a good clue what we are working with. |
static void |
outOfContainerDestroy(Container container)
Clean up the current thread when outOfContainerInit() has been
called. |
static Container |
outOfContainerInit()
A way to setup DWR outside of any Containers. |
static void |
setupLogging(javax.servlet.ServletConfig servletConfig,
javax.servlet.http.HttpServlet servlet)
Deprecated. Since version 2.1 DWR does not use Servlet Logging |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartupUtil()
| Method Detail |
|---|
public static Container outOfContainerInit()
throws ContainerConfigurationException
outOfContainerDestroy(Container)
ContainerConfigurationException - If we can't use a beanpublic static void outOfContainerDestroy(Container container)
outOfContainerInit() has been
called.
container - The container created by outOfContainerInit().public static void logStartup(javax.servlet.ServletConfig config)
config - The servlet config
public static void initContainerBeans(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
Container, and configure them.
servletConfig - The servlet configurationservletContext - The servlet contextcontainer - The container to save in the ServletContext
@Deprecated
public static WebContextFactory.WebContextBuilder initWebContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
initContainerBeans(ServletConfig, ServletContext, Container)
WebContextFactory.WebContextBuilder out of the
Container, configure it (call WebContextBuilder#set()) and use it
to configure the WebContextFactory.
servletConfig - The servlet configurationservletContext - The servlet contextcontainer - The container to save in the ServletContext
@Deprecated
public static ServerContextFactory.ServerContextBuilder initServerContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
initContainerBeans(ServletConfig, ServletContext, Container)
ServerContextFactory.ServerContextBuilder out of the
Container, configure it and use it to configure the
ServerContextFactory
servletConfig - The servlet configurationservletContext - The servlet contextcontainer - The container to save in the ServletContext
@Deprecated
public static HubFactory.HubBuilder initHub(javax.servlet.ServletContext servletContext,
Container container)
initContainerBeans(ServletConfig, ServletContext, Container)
HubFactory.HubBuilder out of the Container,
configure it and use it to configure the HubFactory
servletContext - The servlet contextcontainer - The container to save in the ServletContext
@Deprecated
public static void setupLogging(javax.servlet.ServletConfig servletConfig,
javax.servlet.http.HttpServlet servlet)
servletConfig - The servlet configurationservlet - The servlet that we are running under
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||