/** * Return the WebConfiguration instance for this application. * @param servletContext the ServletContext * @return the WebConfiguration for this application or <code>null</code> * if no WebConfiguration could be located */ public static WebConfiguration getInstance(ServletContext servletContext) { WebConfiguration webConfig = (WebConfiguration) servletContext.getAttribute(WEB_CONFIG_KEY); if (webConfig == null) { webConfig = new WebConfiguration(servletContext); servletContext.setAttribute(WEB_CONFIG_KEY, webConfig); } return webConfig; }
/** * Return the WebConfiguration instance for this application. * @param servletContext the ServletContext * @return the WebConfiguration for this application or <code>null</code> * if no WebConfiguration could be located */ public static WebConfiguration getInstance(ServletContext servletContext) { WebConfiguration webConfig = (WebConfiguration) servletContext.getAttribute(WEB_CONFIG_KEY); if (webConfig == null) { webConfig = new WebConfiguration(servletContext); servletContext.setAttribute(WEB_CONFIG_KEY, webConfig); } return webConfig; }
/** * Return the WebConfiguration instance for this application. * @param servletContext the ServletContext * @return the WebConfiguration for this application or <code>null</code> * if no WebConfiguration could be located */ public static WebConfiguration getInstance(ServletContext servletContext) { WebConfiguration webConfig = (WebConfiguration) servletContext.getAttribute(WEB_CONFIG_KEY); if (webConfig == null) { webConfig = new WebConfiguration(servletContext); servletContext.setAttribute(WEB_CONFIG_KEY, webConfig); } return webConfig; }
/** * Return the WebConfiguration instance for this application. * @param servletContext the ServletContext * @return the WebConfiguration for this application or <code>null</code> * if no WebConfiguration could be located */ public static WebConfiguration getInstance(ServletContext servletContext) { WebConfiguration webConfig = (WebConfiguration) servletContext.getAttribute(WEB_CONFIG_KEY); if (webConfig == null) { webConfig = new WebConfiguration(servletContext); servletContext.setAttribute(WEB_CONFIG_KEY, webConfig); } return webConfig; }
/** * Return the WebConfiguration instance for this application. * @param servletContext the ServletContext * @return the WebConfiguration for this application or <code>null</code> * if no WebConfiguration could be located */ public static WebConfiguration getInstance(ServletContext servletContext) { WebConfiguration webConfig = (WebConfiguration) servletContext.getAttribute(WEB_CONFIG_KEY); if (webConfig == null) { webConfig = new WebConfiguration(servletContext); servletContext.setAttribute(WEB_CONFIG_KEY, webConfig); } return webConfig; }