org.kohsuke.stapler.jelly.jruby
Class JRubyFacet

java.lang.Object
  extended by org.kohsuke.stapler.Facet
      extended by org.kohsuke.stapler.jelly.jruby.JRubyFacet
All Implemented Interfaces:
org.kohsuke.stapler.jelly.JellyCompatibleFacet

@MetaInfServices(value=org.kohsuke.stapler.Facet.class)
public class JRubyFacet
extends org.kohsuke.stapler.Facet
implements org.kohsuke.stapler.jelly.JellyCompatibleFacet

Facet that adds Ruby-based view technologies.

Author:
Kohsuke Kawaguchi, Hiroshi Nakamura

Nested Class Summary
protected  class JRubyFacet.ScriptInvokingDispatcher
           
 
Field Summary
 
Fields inherited from class org.kohsuke.stapler.Facet
LOGGER
 
Constructor Summary
JRubyFacet()
           
 
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)
           
 JRubyClassInfo getClassInfo(org.jruby.RubyClass r)
           
 Collection<Class<? extends AbstractRubyTearOff>> getClassTearOffTypes()
           
 Collection<String> getScriptExtensions()
           
 boolean handleIndexRequest(org.kohsuke.stapler.RequestImpl req, org.kohsuke.stapler.ResponseImpl rsp, Object node, org.kohsuke.stapler.MetaClass nodeMetaClass)
           
 org.apache.commons.jelly.Script parseScript(URL template)
           
 
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
 

Constructor Detail

JRubyFacet

public JRubyFacet()
Method Detail

parseScript

public org.apache.commons.jelly.Script parseScript(URL template)
                                            throws IOException
Throws:
IOException

getClassInfo

public JRubyClassInfo getClassInfo(org.jruby.RubyClass r)

buildViewDispatchers

public void buildViewDispatchers(org.kohsuke.stapler.MetaClass owner,
                                 List<org.kohsuke.stapler.Dispatcher> dispatchers)
Specified by:
buildViewDispatchers in class org.kohsuke.stapler.Facet

getClassTearOffTypes

public Collection<Class<? extends AbstractRubyTearOff>> getClassTearOffTypes()
Specified by:
getClassTearOffTypes in interface org.kohsuke.stapler.jelly.JellyCompatibleFacet

getScriptExtensions

public Collection<String> getScriptExtensions()
Specified by:
getScriptExtensions in interface org.kohsuke.stapler.jelly.JellyCompatibleFacet

createRequestDispatcher

public javax.servlet.RequestDispatcher createRequestDispatcher(org.kohsuke.stapler.RequestImpl request,
                                                               Class type,
                                                               Object it,
                                                               String viewName)
                                                        throws IOException
Specified by:
createRequestDispatcher in class org.kohsuke.stapler.Facet
Throws:
IOException

handleIndexRequest

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
Specified by:
handleIndexRequest in class org.kohsuke.stapler.Facet
Throws:
IOException
javax.servlet.ServletException


Copyright © 2011. All Rights Reserved.