org.kohsuke.stapler
Class AbstractTearOff<CLT,S,E extends Exception>
java.lang.Object
org.kohsuke.stapler.CachingScriptLoader<S,E>
org.kohsuke.stapler.AbstractTearOff<CLT,S,E>
- Type Parameters:
CLT
- ClassLoader tear-off.
public abstract class AbstractTearOff<CLT,S,E extends Exception>
- extends CachingScriptLoader<S,E>
Partial default implementation of tear-off class, for convenience of derived classes.
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owner
protected final MetaClass owner
classLoader
protected final CLT classLoader
AbstractTearOff
protected AbstractTearOff(MetaClass owner,
Class<CLT> cltClass)
getDefaultScriptExtension
protected abstract String getDefaultScriptExtension()
- Default file extension of this kind of scripts, such as ".jelly"
resolveScript
public S resolveScript(String name)
throws E extends Exception
- Loads the script just from the target class without considering inherited scripts
from its base types.
- Throws:
E extends Exception
loadScript
protected final S loadScript(String name)
throws E extends Exception
- Description copied from class:
CachingScriptLoader
- Cache-less version of the
CachingScriptLoader.findScript(String)
that provides the actual logic.
- Specified by:
loadScript
in class CachingScriptLoader<S,E extends Exception>
- Throws:
E extends Exception
parseScript
protected abstract S parseScript(URL res)
throws E extends Exception
- Compiles a script into the compiled form.
- Throws:
E extends Exception
getResource
protected URL getResource(String name)
- Specified by:
getResource
in class CachingScriptLoader<S,E extends Exception>
Copyright © 2011. All Rights Reserved.