CLT - ClassLoader tear-off.public abstract class AbstractTearOff<CLT,S,E extends java.lang.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,
java.lang.Class<CLT> cltClass) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getDefaultScriptExtension()
The file extension of this kind of scripts, such as ".jelly"
|
protected java.net.URL |
getResource(java.lang.String name) |
protected WebApp |
getWebApp() |
protected boolean |
hasAllowedExtension(java.lang.String name)
Checks if the file name is allowed as a script of this type.
|
protected S |
loadScript(java.lang.String name)
Cache-less version of the
CachingScriptLoader.findScript(String) that provides the actual logic. |
protected abstract S |
parseScript(java.net.URL res)
Compiles a script into the compiled form.
|
S |
resolveScript(java.lang.String name)
Loads the script just from the target class without considering inherited scripts
from its base types.
|
clearScripts, findScriptprotected final WebApp getWebApp()
protected abstract java.lang.String getDefaultScriptExtension()
protected boolean hasAllowedExtension(java.lang.String name)
public S resolveScript(java.lang.String name) throws E extends java.lang.Exception
E extends java.lang.Exceptionprotected final S loadScript(java.lang.String name) throws E extends java.lang.Exception
CachingScriptLoaderCachingScriptLoader.findScript(String) that provides the actual logic.loadScript in class CachingScriptLoader<S,E extends java.lang.Exception>E extends java.lang.Exceptionprotected abstract S parseScript(java.net.URL res) throws E extends java.lang.Exception
E extends java.lang.Exceptionprotected java.net.URL getResource(java.lang.String name)
getResource in class CachingScriptLoader<S,E extends java.lang.Exception>Copyright © 2013. All Rights Reserved.