List of usage examples for org.apache.commons.jxpath.servlet Constants APPLICATION_SCOPE
String APPLICATION_SCOPE
To view the source code for org.apache.commons.jxpath.servlet Constants APPLICATION_SCOPE.
Click Source Link
From source file:org.apache.cocoon.jxpath.JXPathCocoonContexts.java
/** * Returns a JXPathContext bound to the "application" scope. Caches that context * within the servlet context itself./* w w w . j a va 2s .c om*/ */ public final JXPathContext getApplicationContext(Context envContext) { JXPathContext context = (JXPathContext) envContext.getAttribute(Constants.JXPATH_CONTEXT); if (context == null) { envContext = new ContextProxy(envContext); context = factory.newContext(null, envContext); context.setVariables(new KeywordVariables(Constants.APPLICATION_SCOPE, envContext)); envContext.setAttribute(Constants.JXPATH_CONTEXT, context); } return context; }