|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.productivity.java.habitat4j.web.servlet.Habitat4JBootstrapServletContextListener
public class Habitat4JBootstrapServletContextListener
Habitat4JBootstrapServletContextListener provides a ServletContextListener implementation for the use in initializing, or "bootstrapping," Habitat4J.
This class primarily wraps the Habitat4JBootstrap class.
For the listener specification in the Serlvet Web Descriptor (web.xml), use the following listener-class:
For the context-param configuration in the Web Descriptor (web.xml), use the following parameters:
## LICENSE INFORMATION ##
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| Constructor Summary | |
|---|---|
Habitat4JBootstrapServletContextListener()
|
|
| Method Summary | |
|---|---|
void |
contextDestroyed(ServletContextEvent event)
|
void |
contextInitialized(ServletContextEvent event)
|
protected void |
doBootstrapInitialize(ServletContext context)
doBootstrapInitialize() is used by the default init() method to setup Habitat4J in one step. |
protected void |
doBootstrapInitializePropertyLists(ServletContext context)
doBootstrapInitializePropertyLists() is used when subclassing Habitat4JBootstrapServlet and overriding the init() method. |
protected void |
doBootstrapInitializeServerIdentity(ServletContext context)
doBootstrapInitializeServerIdentity() is used when subclassing Habitat4JBootstrapServlet and overriding the init() method. |
protected static java.util.Map |
getInitParametersAsMap(ServletContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Habitat4JBootstrapServletContextListener()
| Method Detail |
|---|
protected static java.util.Map getInitParametersAsMap(ServletContext context)
context - - the ServletContext instance
protected void doBootstrapInitializeServerIdentity(ServletContext context)
throws java.lang.RuntimeException
context - - the ServletContext instance
java.lang.RuntimeException
protected void doBootstrapInitializePropertyLists(ServletContext context)
throws java.lang.RuntimeException
context - - the ServletContext instance
java.lang.RuntimeException
protected void doBootstrapInitialize(ServletContext context)
throws java.lang.RuntimeException
context - - the ServletContext instance
java.lang.RuntimeExceptionpublic void contextDestroyed(ServletContextEvent event)
public void contextInitialized(ServletContextEvent event)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||