org.kohsuke.stapler.jelly.jruby
Class AbstractRubyTearOff

java.lang.Object
  extended by org.kohsuke.stapler.CachingScriptLoader<S,E>
      extended by org.kohsuke.stapler.AbstractTearOff<JRubyClassLoaderTearOff,org.apache.commons.jelly.Script,IOException>
          extended by org.kohsuke.stapler.jelly.jruby.AbstractRubyTearOff
Direct Known Subclasses:
ERbClassTearOff, HamlClassTearOff

public abstract class AbstractRubyTearOff
extends org.kohsuke.stapler.AbstractTearOff<JRubyClassLoaderTearOff,org.apache.commons.jelly.Script,IOException>

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.stapler.AbstractTearOff
classLoader, owner
 
Constructor Summary
protected AbstractRubyTearOff(org.kohsuke.stapler.MetaClass owner)
           
 
Method Summary
 javax.servlet.RequestDispatcher createDispatcher(Object it, String viewName)
          Creates a RequestDispatcher that forwards to the jelly view, if available.
protected abstract  String getDefaultScriptExtension()
          Defines the file extension, like ".erb", that designates this kind of view type.
 org.apache.commons.jelly.Script parseScript(URL res)
           
 
Methods inherited from class org.kohsuke.stapler.AbstractTearOff
getResource, loadScript, resolveScript
 
Methods inherited from class org.kohsuke.stapler.CachingScriptLoader
clearScripts, findResource, findScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRubyTearOff

protected AbstractRubyTearOff(org.kohsuke.stapler.MetaClass owner)
Method Detail

getDefaultScriptExtension

protected abstract String getDefaultScriptExtension()
Defines the file extension, like ".erb", that designates this kind of view type.

Specified by:
getDefaultScriptExtension in class org.kohsuke.stapler.AbstractTearOff<JRubyClassLoaderTearOff,org.apache.commons.jelly.Script,IOException>

parseScript

public org.apache.commons.jelly.Script parseScript(URL res)
                                            throws IOException
Specified by:
parseScript in class org.kohsuke.stapler.AbstractTearOff<JRubyClassLoaderTearOff,org.apache.commons.jelly.Script,IOException>
Throws:
IOException

createDispatcher

public javax.servlet.RequestDispatcher createDispatcher(Object it,
                                                        String viewName)
                                                 throws IOException
Creates a RequestDispatcher that forwards to the jelly view, if available.

Throws:
IOException


Copyright © 2011. All Rights Reserved.