public class WebUtil extends Object
CayenneRuntime
in the
ServletContext
. All Cayenne web configuration objects, such as
CayenneFilter
and ROPHessianServlet
, are using this class to access
runtime.Constructor and Description |
---|
WebUtil() |
Modifier and Type | Method and Description |
---|---|
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. |
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)
.Copyright © 2001–2015 Apache Cayenne. All rights reserved.