@MetaInfServices(value=org.kohsuke.stapler.Facet.class) public class JellyFacet extends Facet implements JellyCompatibleFacet
Facet that adds Jelly as the view.| Modifier and Type | Field and Description |
|---|---|
ResourceBundleFactory |
resourceBundleFactory
Used to load
ResourceBundles. |
ScriptInvoker |
scriptInvoker
Used to invoke Jelly script.
|
static boolean |
TRACE
This flag will activate the Jelly evaluation trace.
|
| Constructor and Description |
|---|
JellyFacet() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildViewDispatchers(MetaClass owner,
java.util.List<Dispatcher> dispatchers) |
javax.servlet.RequestDispatcher |
createRequestDispatcher(RequestImpl request,
Klass<?> type,
java.lang.Object it,
java.lang.String viewName) |
java.util.Collection<java.lang.Class<JellyClassTearOff>> |
getClassTearOffTypes() |
java.util.Collection<java.lang.String> |
getScriptExtensions()
Gets the list of view script extensions, such as ".jelly".
|
boolean |
handleIndexRequest(RequestImpl req,
ResponseImpl rsp,
java.lang.Object node,
MetaClass nodeMetaClass) |
static void |
setExpressionFactory(javax.servlet.ServletContextEvent event,
org.apache.commons.jelly.expression.ExpressionFactory factory)
Sets the Jelly
ExpressionFactory to be used to parse views. |
buildFallbackDispatchers, createRequestDispatcher, discover, discoverExtensions, getKlasspublic volatile ScriptInvoker scriptInvoker
public volatile ResourceBundleFactory resourceBundleFactory
ResourceBundles.public static boolean TRACE
public void buildViewDispatchers(MetaClass owner, java.util.List<Dispatcher> dispatchers)
buildViewDispatchers in class Facetpublic java.util.Collection<java.lang.Class<JellyClassTearOff>> getClassTearOffTypes()
getClassTearOffTypes in interface JellyCompatibleFacetpublic java.util.Collection<java.lang.String> getScriptExtensions()
JellyCompatibleFacetgetScriptExtensions in interface JellyCompatibleFacetpublic javax.servlet.RequestDispatcher createRequestDispatcher(RequestImpl request, Klass<?> type, java.lang.Object it, java.lang.String viewName) throws java.io.IOException
createRequestDispatcher in class Facetjava.io.IOExceptionpublic boolean handleIndexRequest(RequestImpl req, ResponseImpl rsp, java.lang.Object node, MetaClass nodeMetaClass) throws java.io.IOException, javax.servlet.ServletException
handleIndexRequest in class Facetjava.io.IOExceptionjavax.servlet.ServletExceptionpublic static void setExpressionFactory(javax.servlet.ServletContextEvent event,
org.apache.commons.jelly.expression.ExpressionFactory factory)
ExpressionFactory to be used to parse views.
This method should be invoked from your implementation of
ServletContextListener.contextInitialized(ServletContextEvent).
Once views are parsed, they won't be re-parsed just because you called this method to override the expression factory.
The primary use case of this feature is to customize the behavior of JEXL evaluation.
Copyright © 2015. All Rights Reserved.