|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Inherited
public @interface JettyServerAnnotation for bringing up an embedded JettyServer in unit tests
| Optional Element Summary | |
|---|---|
boolean |
addWebappResourceLoader
Whether to explicitly add the webapp's ResourceLoader to the GlobalResourceLoader |
JettyServerLifecycle.ConfigMode |
configMode
What to do with the webapp's Config: NONE - nothing, OVERRIDE - replace the current context config (the test harness config) with the webapp's config MERGE - merge the properties and objects into the current context config (but don't replace the whole config) |
String |
context
The context name; this will be prepended with a slash "/", so don't prepend a slash |
int |
port
The port to bring jetty up on; CONFIG_PARAM_PORT to refer to a port from a config param |
String |
portConfigParam
The name of the config param from which to read the port |
String |
webapp
The webapp file location, relative to the working directory of the unit test |
public abstract String webapp
public abstract String context
public abstract int port
public abstract String portConfigParam
public abstract JettyServerLifecycle.ConfigMode configMode
public abstract boolean addWebappResourceLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||