|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.commons.dev.server.DevServer
public abstract class DevServer
Base class for dev servers.
| Field Summary | |
|---|---|
protected String[] |
args
|
| Constructor Summary | |
|---|---|
DevServer(String[] args)
Constructor. |
|
| Method Summary | |
|---|---|
protected abstract void |
addModules(DevServerEnvironment environment)
Adds dev server modules. |
protected abstract void |
addModulesToJetty(DevServerEnvironment environment,
org.eclipse.jetty.server.handler.ContextHandlerCollection handlers)
Adds the dev server modules as contexts in jetty. |
protected abstract DevServerEnvironment |
createDevEnvironment()
|
void |
disableDebug()
Disables debug logging. |
void |
enableDebug()
Enables debug logging. |
void |
go()
Start/run the server. |
protected void |
postStart(DevServerEnvironment environment)
Do any post startup tasks. |
protected void |
preConfig()
Do any configuration steps. |
protected int |
serverPort()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String[] args
| Constructor Detail |
|---|
public DevServer(String[] args)
| Method Detail |
|---|
public void enableDebug()
public void disableDebug()
public void go()
throws Exception
Exceptionprotected void preConfig()
protected abstract DevServerEnvironment createDevEnvironment()
protected abstract void addModules(DevServerEnvironment environment)
environment -
protected abstract void addModulesToJetty(DevServerEnvironment environment,
org.eclipse.jetty.server.handler.ContextHandlerCollection handlers)
throws Exception
environment - handlers -
Exception
protected void postStart(DevServerEnvironment environment)
throws Exception
Exceptionprotected int serverPort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||