info.soaj.core.listener
Class SjFrameworkActivationManager
java.lang.Object
info.soaj.core.listener.SjFrameworkActivationManager
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class SjFrameworkActivationManager
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
There are two distinct strategies for managing the initialization of the SOAj
Core Framework and activation of plugins. The first option is to invoke one
of the static activateSOAj() methods as follows:
// Use the default descriptor document name.
SjGeneralStore.activateSOAj();
// Else, use the specified descriptor document name.
SjGeneralStore.activateSOAj("soaj-mypluginproject.xml");
The second option is to use this class as a
ServletContextListener and declare similarly to the following
web.xml document elements:
<listener>
<listener-class>info.soaj.core.listener.SjFrameworkActivationManager</listener-class>
</listener>
The decision to use the static method or the listener approach is guided by
the type of JVM being launched.
Java Applet - Static Method
Java Application - Static Method
JUnit-style Test - Static Method (Typically outside-the-container approach.)
Web Application - Servlet Context Listener
The plugin Activation Sequence has six phases as follows:
Phase One - Retrieve Properties
Phase Two - Create Active
Phase Three - Initialize Active
Phase Four - Verify Active
Phase Five - Report Status
Phase Six - Log Context
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com .
- Since:
- v. 1.0
- Author:
- MarvinToll@gtcGroup.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SjFrameworkActivationManager
public SjFrameworkActivationManager()
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent contextEvent)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
- See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent contextEvent)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
- See Also:
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.