public abstract class AbstractExecutorManager extends AbstractJavascriptBasedManager implements KeyValueManager<Executor>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractExecutorManager.JSExecutor |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Executor> |
jsExecutors |
instance, sem| Constructor and Description |
|---|
AbstractExecutorManager(TriggerReactorCore plugin) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<String,Executor>> |
entrySet() |
Executor |
get(Object key) |
Map<String,Executor> |
getBackedMap()
Get map directly associated with this manager.
|
protected void |
reloadExecutors(File file,
FileFilter filter)
Loads all the Executor files and files under the folders.
|
initScriptEnginedisable, getManagers, reload, saveAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNashornEngine, registerClass, registerClasspublic AbstractExecutorManager(TriggerReactorCore plugin) throws ScriptException
ScriptExceptionprotected void reloadExecutors(File file, FileFilter filter) throws ScriptException, IOException
file - the target file/folderfilter - the filter for Executors. Usually you check if the file ends withd .js or is a folder.ScriptExceptionIOExceptionpublic Executor get(Object key)
get in interface KeyValueManager<Executor>public boolean containsKey(Object key)
containsKey in interface KeyValueManager<Executor>public Set<Map.Entry<String,Executor>> entrySet()
entrySet in interface KeyValueManager<Executor>public Map<String,Executor> getBackedMap()
KeyValueManagergetBackedMap in interface KeyValueManager<Executor>