com.zeroturnaround.liverebel.util.exec.impl
Class MapBasedUpdateScriptStore
java.lang.Object
com.zeroturnaround.liverebel.util.exec.impl.MapBasedUpdateScriptStore
- All Implemented Interfaces:
- UpdateScriptStore
public class MapBasedUpdateScriptStore
- extends Object
- implements UpdateScriptStore
Script store that is populated manually. Should be used with some description of where
scripts can sit in FS or just given as plaintext.
- Author:
- shelajev
|
Method Summary |
void |
addScript(String type,
Script script)
|
void |
addScript(String type,
Script script,
boolean global)
|
void |
addScript(String type,
Script script,
Script undo,
boolean global)
|
String |
getDescription()
|
File |
getEntriesArchive()
|
Map |
getJson2ZipEntries()
|
Collection |
getScripts(ScriptEventType type,
boolean global)
|
Collection |
getUndoScripts(ScriptEventType type,
boolean global)
|
void |
initEntriesArchive(File tmpFile,
List entrySources,
Map json2zipEntries)
|
void |
setDescription(String description)
|
void |
setEntriesArchive(File entriesArchive)
|
String |
toString()
|
MapBasedUpdateScriptStore
public MapBasedUpdateScriptStore()
MapBasedUpdateScriptStore
public MapBasedUpdateScriptStore(Map globalEvents,
Map serverEvents)
initEntriesArchive
public void initEntriesArchive(File tmpFile,
List entrySources,
Map json2zipEntries)
setEntriesArchive
public void setEntriesArchive(File entriesArchive)
getEntriesArchive
public File getEntriesArchive()
getJson2ZipEntries
public Map getJson2ZipEntries()
addScript
public void addScript(String type,
Script script)
addScript
public void addScript(String type,
Script script,
boolean global)
addScript
public void addScript(String type,
Script script,
Script undo,
boolean global)
getScripts
public Collection getScripts(ScriptEventType type,
boolean global)
- Specified by:
getScripts in interface UpdateScriptStore
getUndoScripts
public Collection getUndoScripts(ScriptEventType type,
boolean global)
- Specified by:
getUndoScripts in interface UpdateScriptStore
setDescription
public void setDescription(String description)
getDescription
public String getDescription()
- Specified by:
getDescription in interface UpdateScriptStore
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.