|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Maintains and returns runtime-specific information for a particular run of a
web server/servlet engine. Each ServerStarter
is associated with a ServerSetup
, and may delegate to it for
items that do not change.
Field Summary | |
static java.lang.String |
GENERATE_COMMENT
This string, which should be used in a comment early in any generated files, can be used to identify those files, so that they may be deleted if they are found during the prepare stage (if for example, the cleanup stage was not executed previously, leaving files that should have been deleted). |
Method Summary | |
void |
cleanup()
Performs any desired cleanup after the server has been terminated, like deleting a generated configuration file. |
void |
configure(JBProject jbProject,
ServerDescriptor serverDescriptor)
Configures the starter for a particular run. |
java.lang.String |
getArguments()
Returns any arguments required by the server for this particular run. |
JspSourceBridge |
getJspSourceBridge()
Returns object to enable JSP source debugging. |
java.lang.String |
getMainClass()
Returns the main class or JAR file to execute. |
java.lang.String |
getVMParameters()
Returns any VM parameters required by the server for this particular run. |
java.io.File |
getWorkingDir()
Returns the directory the VM should be started in. |
void |
prepare()
Prepares the server for execution by doing server-specific configuration for a particular run, usually by generating a configuration file. |
boolean |
shutdown()
Attempts to shut down the server gracefully; called by the IDE when the user wants to terminate the server process. |
Field Detail |
public static final java.lang.String GENERATE_COMMENT
Method Detail |
public void configure(JBProject jbProject, ServerDescriptor serverDescriptor)
It's desirable to be able to run the same server on multiple ports simultaneously, so any configuration/preparation should not prevent this. For example, a single configuration file that has the port number hard-coded in it would not work.
jbProject
- reference to current projectserverDescriptor
- object that contains run-time particularspublic java.lang.String getVMParameters()
public java.lang.String getMainClass()
public java.lang.String getArguments()
prepare
.
Note that if there are filename arguments with spaces, they must be
enclosed in quotes in the string.public java.io.File getWorkingDir()
public JspSourceBridge getJspSourceBridge()
configure
.public void prepare()
public boolean shutdown()
public void cleanup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |