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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
The file extension of this kind of scripts, such as ".jelly"protected URL
getResource
(String name) protected final WebApp
protected boolean
hasAllowedExtension
(String name) Checks if the file name is allowed as a script of this type.protected final S
loadScript
(String name) Cache-less version of theCachingScriptLoader.findScript(String)
that provides the actual logic.protected abstract S
parseScript
(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:CachingScriptLoader
Cache-less version of theCachingScriptLoader.findScript(String)
that provides the actual logic.- Specified by:
loadScript
in classCachingScriptLoader<S,
E extends Exception> - Throws:
E extends Exception
-
parseScript
Compiles a script into the compiled form. -
getResource
- Specified by:
getResource
in classCachingScriptLoader<S,
E extends Exception>
-