|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.stapler.Facet
org.kohsuke.stapler.jelly.JellyFacet
@MetaInfServices(value=org.kohsuke.stapler.Facet.class) public class JellyFacet
Facet
that adds Jelly as the view.
Field Summary | |
---|---|
ResourceBundleFactory |
resourceBundleFactory
Used to load ResourceBundle s. |
ScriptInvoker |
scriptInvoker
Used to invoke Jelly script. |
static boolean |
TRACE
This flag will activate the Jelly evaluation trace. |
Fields inherited from class org.kohsuke.stapler.Facet |
---|
LOGGER |
Constructor Summary | |
---|---|
JellyFacet()
|
Method Summary | |
---|---|
void |
buildViewDispatchers(org.kohsuke.stapler.MetaClass owner,
List<org.kohsuke.stapler.Dispatcher> dispatchers)
|
javax.servlet.RequestDispatcher |
createRequestDispatcher(org.kohsuke.stapler.RequestImpl request,
Class type,
Object it,
String viewName)
|
Collection<Class<JellyClassTearOff>> |
getClassTearOffTypes()
|
Collection<String> |
getScriptExtensions()
Gets the list of view script extensions, such as ".jelly". |
boolean |
handleIndexRequest(org.kohsuke.stapler.RequestImpl req,
org.kohsuke.stapler.ResponseImpl rsp,
Object node,
org.kohsuke.stapler.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. |
Methods inherited from class org.kohsuke.stapler.Facet |
---|
discover, discoverExtensions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public volatile ScriptInvoker scriptInvoker
public volatile ResourceBundleFactory resourceBundleFactory
ResourceBundle
s.
public static boolean TRACE
Constructor Detail |
---|
public JellyFacet()
Method Detail |
---|
public void buildViewDispatchers(org.kohsuke.stapler.MetaClass owner, List<org.kohsuke.stapler.Dispatcher> dispatchers)
buildViewDispatchers
in class org.kohsuke.stapler.Facet
public Collection<Class<JellyClassTearOff>> getClassTearOffTypes()
getClassTearOffTypes
in interface JellyCompatibleFacet
public Collection<String> getScriptExtensions()
JellyCompatibleFacet
getScriptExtensions
in interface JellyCompatibleFacet
public javax.servlet.RequestDispatcher createRequestDispatcher(org.kohsuke.stapler.RequestImpl request, Class type, Object it, String viewName) throws IOException
createRequestDispatcher
in class org.kohsuke.stapler.Facet
IOException
public boolean handleIndexRequest(org.kohsuke.stapler.RequestImpl req, org.kohsuke.stapler.ResponseImpl rsp, Object node, org.kohsuke.stapler.MetaClass nodeMetaClass) throws IOException, javax.servlet.ServletException
handleIndexRequest
in class org.kohsuke.stapler.Facet
IOException
javax.servlet.ServletException
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |