T - The configuration class required by the application that is to be
bootstrapped.public interface Bootstrap<T extends Configuration>
ResourceHandler
instances and classes that make up the application. | Modifier and Type | Method and Description |
|---|---|
void |
addHandler(ResourceHandler handler)
Register an initialized
ResourceHandler instance of the
application. |
void |
addHandlerClass(Class<? extends ResourceHandler> handlerClass)
Register a
ResourceHandler class that is used by the application. |
T |
configuration()
Retrieve the configuration of the application.
|
T configuration()
void addHandler(ResourceHandler handler)
ResourceHandler instance of the
application. addHandlerClass(Class) method.handler - the handler instance.NullPointerException - if the handler instance is null.void addHandlerClass(Class<? extends ResourceHandler> handlerClass)
ResourceHandler class that is used by the application. addHandler(ResourceHandler) method.handlerClass - the handler class.NullPointerException - if the handler class is null.
Copyright (C) 2014, Center for Open Middleware