|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.configuration.web.WebUtil
public class WebUtil
A helper class to retrieve and store CayenneRuntime
in the
ServletContext
. All Cayenne web configuration objects, such as
CayenneFilter
and ROPHessianServlet
, are using this class to access
runtime.
Constructor Summary | |
---|---|
WebUtil()
|
Method Summary | |
---|---|
static CayenneRuntime |
getCayenneRuntime(javax.servlet.ServletContext context)
Retrieves CayenneRuntime previously stored in provided context via setCayenneRuntime(ServletContext, CayenneRuntime) . |
static void |
setCayenneRuntime(javax.servlet.ServletContext context,
CayenneRuntime runtime)
Stores CayenneRuntime in the servlet context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebUtil()
Method Detail |
---|
public static CayenneRuntime getCayenneRuntime(javax.servlet.ServletContext context)
setCayenneRuntime(ServletContext, CayenneRuntime)
. May return null if no
runtime was stored.
public static void setCayenneRuntime(javax.servlet.ServletContext context, CayenneRuntime runtime)
CayenneRuntime
in the servlet context. It can be later retrieve via
getCayenneRuntime(ServletContext)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |