Package 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.
Partial default implementation of tear-off class, for convenience of derived classes.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringThe file extension of this kind of scripts, such as ".jelly"protected URLgetResource(String name) protected final WebAppprotected booleanhasAllowedExtension(String name) Checks if the file name is allowed as a script of this type.protected final SloadScript(String name) Cache-less version of theCachingScriptLoader.findScript(String)that provides the actual logic.protected abstract SparseScript(URL res) Compiles a script into the compiled form.resolveScript(String name) Loads the script just from the target class without considering inherited scripts from its base types.Methods inherited from class org.kohsuke.stapler.CachingScriptLoader
clearScripts, findScript
-
Field Details
-
owner
-
classLoader
-
-
Constructor Details
-
AbstractTearOff
-
-
Method Details
-
getWebApp
-
getDefaultScriptExtension
The file extension of this kind of scripts, such as ".jelly" -
hasAllowedExtension
Checks if the file name is allowed as a script of this type. This is necessary to have multiple facets co-exist peacefully without them trying to load each other's scripts. -
resolveScript
Loads the script just from the target class without considering inherited scripts from its base types. -
loadScript
Description copied from class:CachingScriptLoaderCache-less version of theCachingScriptLoader.findScript(String)that provides the actual logic.- Specified by:
loadScriptin classCachingScriptLoader<S,E extends Exception> - Throws:
E extends Exception
-
parseScript
Compiles a script into the compiled form. -
getResource
- Specified by:
getResourcein classCachingScriptLoader<S,E extends Exception>
-