CLT
- ClassLoader tear-off.public abstract class AbstractTearOff<CLT,S,E extends Exception> extends CachingScriptLoader<S,E>
Modifier and Type | Field and Description |
---|---|
protected CLT |
classLoader |
protected MetaClass |
owner |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTearOff(MetaClass owner,
Class<CLT> cltClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getDefaultScriptExtension()
The file extension of this kind of scripts, such as ".jelly"
This is called "default" for historical reasons, but for disambiguation
between different views and their facets, we don't support views other than
their default extension.
|
protected URL |
getResource(String name) |
protected WebApp |
getWebApp() |
protected S |
loadScript(String name)
Cache-less version of the
CachingScriptLoader.findScript(String) that provides the actual logic. |
protected abstract S |
parseScript(URL res)
Compiles a script into the compiled form.
|
S |
resolveScript(String name)
Loads the script just from the target class without considering inherited scripts
from its base types.
|
clearScripts, findScript
protected final WebApp getWebApp()
protected abstract String getDefaultScriptExtension()
public S resolveScript(String name) throws E extends Exception
protected final S loadScript(String name) throws E extends Exception
CachingScriptLoader
CachingScriptLoader.findScript(String)
that provides the actual logic.loadScript
in class CachingScriptLoader<S,E extends Exception>
E extends Exception
protected abstract S parseScript(URL res) throws E extends Exception
protected URL getResource(String name)
getResource
in class CachingScriptLoader<S,E extends Exception>
Copyright © 2013. All Rights Reserved.