Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.servlet
Class GuiceContextListener

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

public class GuiceContextListener
extends Object
implements 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 String INJECTOR_ATTRIBUTE
           
static String MODULES_ATTRIBUTE
           
 
Constructor Summary
GuiceContextListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
           
 void contextInitialized(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 String INJECTOR_ATTRIBUTE
See Also:
Constant Field Values

MODULES_ATTRIBUTE

public static final 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(ServletContextEvent event)
Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.