public class SimpleContainer extends Object implements Container
Container implementation that is not
actually needed for Jersey integration.ContainerDEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT| Constructor and Description |
|---|
SimpleContainer(Application application)
Creates a new
SimpleContainer. |
SimpleContainer(ApplicationHandler applicationHandler)
Creates a new
SimpleContainer. |
| Modifier and Type | Method and Description |
|---|---|
ApplicationHandler |
getApplicationHandler()
Returns the
ApplicationHandler this SimpleContainer uses. |
ResourceConfig |
getConfiguration()
Returns a
ResourceConfig representing the configuration
of the application hosted by this SimpleContainer. |
void |
reload()
Reloads the application hosted by this
SimpleContainer. |
void |
reload(ResourceConfig resourceConfig)
Loads what amounts to a new application using the supplied
ResourceConfig. |
public SimpleContainer(Application application)
SimpleContainer.application - the Application to host; may be null in which case a new
Application will be used insteadSimpleContainer(ApplicationHandler)public SimpleContainer(ApplicationHandler applicationHandler)
SimpleContainer.applicationHandler - the ApplicationHandler that
actually does the work of hosting an application; may be null in which case a new ApplicationHandler will be used insteadpublic final ResourceConfig getConfiguration()
ResourceConfig representing the configuration
of the application hosted by this SimpleContainer.
This method may return null.
getConfiguration in interface ContainerResourceConfig representing the configuration
of the application hosted by this SimpleContainer, or
nullApplicationHandler.getConfiguration()public final ApplicationHandler getApplicationHandler()
getApplicationHandler in interface ContainerApplicationHandler this SimpleContainer uses, or nullpublic final void reload()
SimpleContainer.reload in interface Containerreload(ResourceConfig)public void reload(ResourceConfig resourceConfig)
ResourceConfig.reload in interface ContainerresourceConfig - the ResourceConfig representing the
new application; may be nullApplicationHandler.onShutdown(Container),
ApplicationHandler.onReload(Container),
ApplicationHandler.onStartup(Container)Copyright © 2019–2020, microBean™. All rights reserved.