org.exoplatform.application.gadget
Class GadgetRegister

java.lang.Object
  extended by org.exoplatform.application.gadget.GadgetRegister
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

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

This class represents an registry for gadget application, it hear from context and then deployed gadget


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
GadgetRegister()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
          Destroys the listener context
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Initializes the listener and each time a new gadget application war is deployed the gadgets are added into the JCR node by GadgetRegistryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

GadgetRegister

public GadgetRegister()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Initializes the listener and each time a new gadget application war is deployed the gadgets are added into the JCR node by GadgetRegistryService

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Throws:
java.lang.Exception - when can't parse xml file

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Destroys the listener context

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2012 eXo Platform SAS. All Rights Reserved.