org.gcube.common.ghn.service
Class ServiceInitializer

java.lang.Object
  extended by org.gcube.common.ghn.service.ServiceInitializer
All Implemented Interfaces:
javax.servlet.ServletContainerInitializer

public class ServiceInitializer
extends Object
implements javax.servlet.ServletContainerInitializer

Adds a LifetimeListener to managed services.

It is automatically discovered from a app library or a shared library in servlet containers that comply with version 3.0 or later of the Servlet specifications.

Author:
Fabio Simeoni

Constructor Summary
ServiceInitializer()
           
 
Method Summary
 void onStartup(Set<Class<?>> c, javax.servlet.ServletContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInitializer

public ServiceInitializer()
Method Detail

onStartup

public void onStartup(Set<Class<?>> c,
                      javax.servlet.ServletContext ctx)
               throws javax.servlet.ServletException
Specified by:
onStartup in interface javax.servlet.ServletContainerInitializer
Throws:
javax.servlet.ServletException


Copyright © 2013. All Rights Reserved.