org.kohsuke.stapler
Class AbstractTearOff<CLT,S,E extends java.lang.Exception>

java.lang.Object
  extended by org.kohsuke.stapler.CachingScriptLoader<S,E>
      extended by org.kohsuke.stapler.AbstractTearOff<CLT,S,E>

public abstract class AbstractTearOff<CLT,S,E extends java.lang.Exception>
extends CachingScriptLoader<S,E>

Partial default implementation of tear-off class, for convenience of derived classes.

Author:
Kohsuke Kawaguchi

Field Summary
protected  CLT classLoader
           
protected  MetaClass owner
           
 
Constructor Summary
protected AbstractTearOff(MetaClass owner, java.lang.Class<CLT> cltClass)
           
 
Method Summary
protected  java.net.URL getResource(java.lang.String name, java.lang.ClassLoader cl)
           
protected  S loadScript(java.lang.String name)
           
protected abstract  S parseScript(java.net.URL res)
          Compiles a script into the compiled form.
 
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
 

Field Detail

owner

protected final MetaClass owner

classLoader

protected final CLT classLoader
Constructor Detail

AbstractTearOff

protected AbstractTearOff(MetaClass owner,
                          java.lang.Class<CLT> cltClass)
Method Detail

loadScript

protected S loadScript(java.lang.String name)
                throws E extends java.lang.Exception
Specified by:
loadScript in class CachingScriptLoader<S,E extends java.lang.Exception>
Throws:
E extends java.lang.Exception

parseScript

protected abstract S parseScript(java.net.URL res)
                          throws E extends java.lang.Exception
Compiles a script into the compiled form.

Throws:
E extends java.lang.Exception

getResource

protected java.net.URL getResource(java.lang.String name,
                                   java.lang.ClassLoader cl)
Specified by:
getResource in class CachingScriptLoader<S,E extends java.lang.Exception>


Copyright © 2011. All Rights Reserved.