Package org.glassfish.jersey.server.spi

Examples of org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener


     * @param applicationHandler actual application from where to get the listener.
     * @return a single instance of a ContainerLifecycleListener, can not be null.
     */
    public static ContainerLifecycleListener getContainerLifecycleListener(final ApplicationHandler applicationHandler) {

        final ContainerLifecycleListener appPreDestroyInvoker = new AbstractContainerLifecycleListener() {

            @Override
            public void onShutdown(Container container) {
                applicationHandler.getServiceLocator().preDestroy(getWrappedApplication(applicationHandler.getConfiguration()));
            }
View Full Code Here


    protected ResourceConfig configure() {
        enable(TestProperties.LOG_TRAFFIC);

        final ResourceConfig result = new ResourceConfig(ArrivalsResource.class);

        result.registerInstances(new AbstractContainerLifecycleListener() {
            @Override
            public void onStartup(Container container) {
                ReloadTest.container = container;
            }
        });
View Full Code Here

     * @param applicationHandler actual application from where to get the listener.
     * @return a single instance of a ContainerLifecycleListener, can not be null.
     */
    public static ContainerLifecycleListener getContainerLifecycleListener(final ApplicationHandler applicationHandler) {

        final ContainerLifecycleListener appPreDestroyInvoker = new AbstractContainerLifecycleListener() {

            @Override
            public void onShutdown(Container container) {
                applicationHandler.getServiceLocator().preDestroy(getWrappedApplication(applicationHandler.getConfiguration()));
            }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.