|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.NucleusTestUtils.NucleusStartupOptions
public static class NucleusTestUtils.NucleusStartupOptions
A class representing NucleusStartupOptions, used by startNucleusWithModules().
Constructor Summary | |
---|---|
NucleusTestUtils.NucleusStartupOptions(java.lang.String[] pModules,
java.lang.Class pClassRelativeTo,
java.lang.String pInitialService)
This constructor creates NucleusStartupOptions with the specified list of Dynamo modules ("DAS", "DPS", "DSS", "Publishing.base", etc). |
|
NucleusTestUtils.NucleusStartupOptions(java.lang.String[] pModules,
java.lang.Class pClassRelativeTo,
java.lang.String pBaseConfigDirectory,
java.lang.String pInitialService)
This constructor creates NucleusStartupOptions with the specified list of Dynamo modules ("DAS", "DPS", "DSS", "Publishing.base", etc). |
Method Summary | |
---|---|
java.lang.String |
getBaseConfigDirectory()
Set the basic config directory. |
java.lang.Class |
getClassRelativeTo()
Return the "class relative to" property. |
java.lang.String |
getInitialService()
Gets the initialService. |
java.lang.String[] |
getLayers()
Returns the Dynamo layers to run with. |
java.lang.String |
getLayersAsString()
Return the layers as a string appropriate for passing to DynamoServerLauncher, calculateConfigPath. |
boolean |
getLiveconfig()
Returns property liveconfig. |
java.lang.String[] |
getModules()
Return the list of modules for starting Nucleus. |
void |
modifyNucleusCommandLineOptions(java.util.List<java.lang.String> listArgs)
Modify Nucleus command-line options, as needed. |
void |
setLayers(java.lang.String[] pLayers)
Sets the Dynamo layers to run with. |
void |
setLiveconfig(boolean pLiveconfig)
Sets property liveconfig. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NucleusTestUtils.NucleusStartupOptions(java.lang.String[] pModules, java.lang.Class pClassRelativeTo, java.lang.String pInitialService)
(pClassRelativeTo's package location) + "/data/" + (pClassRelativeTo's simpleClassName) + "/config"
and is only added if the directory exists.
You must specify a pInitialService
parameter, which
will be the initial service started by Nucleus (rather than the
normally Initial component, which would do a full Nucleus component
start-up).
pModules
- the list of modules to use to calculate the
Nucleus configuration path.pClassRelativeTo
- the class whose name and package
will be used for the {packageName}/config/{simpleClassName}/data directorypInitialService
- the nucleus path of the Nucleus component
to start-up. This is a required property to prevent accidental
full start-up.
javax.servlet.ServletException
- if an error occurspublic NucleusTestUtils.NucleusStartupOptions(java.lang.String[] pModules, java.lang.Class pClassRelativeTo, java.lang.String pBaseConfigDirectory, java.lang.String pInitialService)
(pClassRelativeTo's package location) + "/" + (pConfigDirectory or "data") + "/config"
and is only added if the directory exists.
You must specify a pInitialService
parameter, which
will be the initial service started by Nucleus (rather than the
normally Initial component, which would do a full Nucleus component
start-up).
pModules
- the list of modules to use to calculate the
Nucleus configuration path.pClassRelativeTo
- the class whose package the config/data
(or pBaseConfigDirectory/data) should be relative in.pBaseConfigDirectory
- the base configuration directory. If
this parameter is non-null, the relative configuration subdirectory will be
("data/" + pBaseConfigDirectory) rather than "data/config".pInitialService
- the nucleus path of the Nucleus component
to start-up. This is a required property to prevent accidental
full start-up.
javax.servlet.ServletException
- if an error occursMethod Detail |
---|
public java.lang.String[] getModules()
public java.lang.Class getClassRelativeTo()
public java.lang.String getInitialService()
public java.lang.String getBaseConfigDirectory()
public void setLayers(java.lang.String[] pLayers)
public java.lang.String[] getLayers()
public java.lang.String getLayersAsString()
public void setLiveconfig(boolean pLiveconfig)
pLiveconfig
- true if Nucleus should be started in liveconfig
mode, false otherwise.public boolean getLiveconfig()
public void modifyNucleusCommandLineOptions(java.util.List<java.lang.String> listArgs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |