public final class FirstRunContainerLifecycleListener extends Object implements org.glassfish.jersey.server.spi.ContainerLifecycleListener
| Modifier and Type | Class and Description |
|---|---|
static class |
FirstRunContainerLifecycleListener.Binder
HK2 Binder for our injector context.
|
| Constructor and Description |
|---|
FirstRunContainerLifecycleListener(org.hibernate.SessionFactory sessionFactory,
org.apache.commons.configuration.Configuration servletConfig,
DatabaseMigrationState migrationState)
Create a new instance of this factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onReload(org.glassfish.jersey.server.spi.Container container)
Invoked when the
container has been reloaded. |
void |
onShutdown(org.glassfish.jersey.server.spi.Container container)
Invoke at the
container shut-down. |
void |
onStartup(org.glassfish.jersey.server.spi.Container container)
Invoked at the
container start-up. |
@Inject
public FirstRunContainerLifecycleListener(org.hibernate.SessionFactory sessionFactory,
@Named(value="kangaroo-servlet-admin")
org.apache.commons.configuration.Configuration servletConfig,
DatabaseMigrationState migrationState)
sessionFactory - The session factory.servletConfig - The servlet's database-persisted configuration.migrationState - The database migration state.public void onStartup(org.glassfish.jersey.server.spi.Container container)
container start-up. This method is
invoked even when application is reloaded and new instance of
application has started.onStartup in interface org.glassfish.jersey.server.spi.ContainerLifecycleListenercontainer - container that has been started.public void onReload(org.glassfish.jersey.server.spi.Container container)
container has been reloaded.onReload in interface org.glassfish.jersey.server.spi.ContainerLifecycleListenercontainer - container that has been reloaded.public void onShutdown(org.glassfish.jersey.server.spi.Container container)
container shut-down. This method is
invoked even before
the application is being stopped as a part of reload.onShutdown in interface org.glassfish.jersey.server.spi.ContainerLifecycleListenercontainer - container that has been shut down.Copyright © 2018 krotscheck.net. All rights reserved.