Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.servlet
Class GuiceContextListener

java.lang.Object
  extended by org.nuxeo.opensocial.servlet.GuiceContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class GuiceContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Although this object says its a ServletContextListener, in fact it is not do to order of initialization issues. This object uses Guice and we want to be sure all the nuxeo initialization is finished prior to Guice being initialized since the user might want to configure it.


Field Summary
static com.google.inject.Injector guiceInjector
           
static java.lang.String INJECTOR_ATTRIBUTE
           
static java.lang.String MODULES_ATTRIBUTE
           
 
Constructor Summary
GuiceContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INJECTOR_ATTRIBUTE

public static final java.lang.String INJECTOR_ATTRIBUTE
See Also:
Constant Field Values

MODULES_ATTRIBUTE

public static final java.lang.String MODULES_ATTRIBUTE
See Also:
Constant Field Values

guiceInjector

public static com.google.inject.Injector guiceInjector
Constructor Detail

GuiceContextListener

public GuiceContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.