Object.
getScriptSourceLocator, getScriptedObject
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the scripted Java objectthe actual ScriptSource to retrieve
the script source text from (never scriptSource, Class<?>... null)the actual interfaces to expose,
including script interfaces as well as a generated config interface
(if applicable; may be actualInterfaces)null)Factory method for creating the scripted Java object. |
| public Class | Returns: the type of the scripted Java object, ornull
if none could be determinedthe actual ScriptSource to retrieve
the script source text from (never scriptSource)null)Determine the type of the scripted Java object. |
| public Class | Returns: the interfaces for the scriptReturn the business interfaces that the script is supposed to implement. |
| public String | Returns: the script source locatorReturn a locator that points to the source of the script. |
| public boolean | Returns: whether the script requires a generated config interfaceReturn whether the script requires a config interface to be generated for it. |
| public boolean | Returns: whether a freshgetScriptedObject call is requiredthe actual ScriptSource to retrieve
the script source text from (never scriptSource)null)Determine whether a refresh is required (e.g. through
ScriptSource's |
| getScriptedObject | back to summary |
|---|---|
| public Object getScriptedObject(ScriptSource scriptSource, Class<?>... actualInterfaces) throws IOException, ScriptCompilationException Factory method for creating the scripted Java object. Implementations are encouraged to cache script metadata such as a generated script class. Note that this method may be invoked concurrently and must be implemented in a thread-safe fashion.
| |
| getScriptedObjectType | back to summary |
|---|---|
| public Class Determine the type of the scripted Java object. Implementations are encouraged to cache script metadata such as a generated script class. Note that this method may be invoked concurrently and must be implemented in a thread-safe fashion.
| |
| getScriptInterfaces | back to summary |
|---|---|
| public Class Return the business interfaces that the script is supposed to implement. Can return | |
| getScriptSourceLocator | back to summary |
|---|---|
| public String getScriptSourceLocator() Return a locator that points to the source of the script. Interpreted by the post-processor that actually creates the script. Typical supported locators are Spring resource locations (such as "file:C:/myScript.bsh" or "classpath:myPackage/myScript.bsh") and inline scripts ("inline:myScriptText...").
| |
| requiresConfigInterface | back to summary |
|---|---|
| public boolean requiresConfigInterface() Return whether the script requires a config interface to be
generated for it. This is typically the case for scripts that
do not determine Java signatures themselves, with no appropriate
config interface specified in
| |
| requiresScriptedObjectRefresh | back to summary |
|---|---|
| public boolean requiresScriptedObjectRefresh(ScriptSource scriptSource) Determine whether a refresh is required (e.g. through
ScriptSource's
| |