public class SimpleContainer extends Object implements Container
Container
implementation that is not
actually needed for Jersey integration.Container
DEFAULT_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 Container
ResourceConfig
representing the configuration
of the application hosted by this SimpleContainer
, or
null
ApplicationHandler.getConfiguration()
public final ApplicationHandler getApplicationHandler()
getApplicationHandler
in interface Container
ApplicationHandler
this SimpleContainer
uses, or null
public final void reload()
SimpleContainer
.reload
in interface Container
reload(ResourceConfig)
public void reload(ResourceConfig resourceConfig)
ResourceConfig
.reload
in interface Container
resourceConfig
- the ResourceConfig
representing the
new application; may be null
ApplicationHandler.onShutdown(Container)
,
ApplicationHandler.onReload(Container)
,
ApplicationHandler.onStartup(Container)
Copyright © 2019–2020, microBean™. All rights reserved.