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.
|
initScriptEngine
disable, getManagers, reload, saveAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNashornEngine, registerClass, registerClass
public AbstractExecutorManager(TriggerReactorCore plugin) throws ScriptException
ScriptException
protected 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.ScriptException
IOException
public 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()
KeyValueManager
getBackedMap
in interface KeyValueManager<Executor>