public class WebUtil extends Object
CayenneRuntime in the
 ServletContext. All Cayenne web configuration objects, such as
 CayenneFilter and ROPServlet, 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  CayenneRuntimein 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–2023 Apache Cayenne. All rights reserved.