abstract class Application extends java.lang.Object implements UsesDependencyService
The new descriptor for applications.
Constructor and description |
---|
Application() |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract void |
configure(Router router) |
|
void |
onStart() |
|
static StaticHandlerOptions |
serve(StaticHandlerOptions options)
|
|
static StaticHandlerOptions |
serve(java.lang.String dir) Serve a directory using smart defaults depending on the application environment. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
options
- Options to pass to the StaticHandlerServe a directory using smart defaults depending on the application environment.
dir
- The directory to serve (relative to CWD)