|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.initializer.Script
Script
Field Summary | |
static String |
versionId
|
Constructor Summary | |
Script(InputStream is)
Constructs a new initialization script from the given input stream. |
|
Script(InputStream is,
String iniName)
|
|
Script(Reader r)
Constructs a new initialization script from the given reader. |
|
Script(Reader r,
String iniName)
Constructs a new Script |
|
Script(String s)
Constructs a new initialization script from the given string. |
|
Script(StringBuffer bs)
Constructs a new initialization script from the given string buffer. |
|
Script(StringBuffer bs,
String iniName)
|
|
Script(String s,
String iniName)
|
Method Summary | |
boolean |
addInitializer(Initializer ini)
Adds an initializer to the script. |
protected void |
finalize()
|
Initializer |
getInitializer(String name)
|
List |
getInitializers()
Returns all the initializers specified in this script. |
static Script |
readConfig(Reader reader)
|
void |
shutdown()
Shuts down all initializers that this script contains. |
void |
shutdown(String iniName)
Shuts down the specified initializer and any initializers it required in order to start. |
Set |
startup()
Starts up all initializers that this script contains. |
Set |
startup(String iniName)
Starts up the specified initializer and any initializers it requires in order to start. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public Script(StringBuffer bs) throws InitializationException
bs
- The script.public Script(StringBuffer bs, String iniName) throws InitializationException
public Script(String s) throws InitializationException
s
- The script.public Script(String s, String iniName) throws InitializationException
public Script(InputStream is) throws InitializationException
is
- The script.public Script(InputStream is, String iniName) throws InitializationException
public Script(Reader r) throws InitializationException
r
- The script.public Script(Reader r, String iniName) throws InitializationException
r
- Reader for the script parseriniName
- Name of the last initializer to run, or null.
Used to selectively run only part of the initialization script
InitializationException
Method Detail |
public static final Script readConfig(Reader reader) throws InitializationException
InitializationException
public boolean addInitializer(Initializer ini) throws InitializationException
ini
- The initializer.
InitializationException
public Initializer getInitializer(String name)
public List getInitializers()
public Set startup() throws InitializationException
InitializationException
public Set startup(String iniName) throws InitializationException
iniName
- The name of the initializer last to start. Note:
This parameter is redundant, as if it is set in the constructor,
only initializers up to the final one will be parsed.
InitializationException
public void shutdown() throws InitializationException
InitializationException
public void shutdown(String iniName) throws InitializationException
iniName
- The name of the initializer to stop.
InitializationException
protected void finalize() throws Throwable
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |