org.mmbase.bridge.mock
Class MockSetup

java.lang.Object
  extended by org.mmbase.bridge.mock.MockSetup
All Implemented Interfaces:
EventListener, ServletContextListener

public class MockSetup
extends Object
implements ServletContextListener

This can be added to your web.xml as a Listener to bootstrap the mock bridge.

  <listener>
    <listener-class>org.mmbase.bridge.mock.MockSetup</listener-class>
  </listener>
  
This arranges the MockCloudContext to be (minimalisticly) set up, so that a mock bridge is available. E.g. to test taglib or so.

Since:
MMBase-1.9.2
Version:
$Id: MockSetup.java 41862 2010-04-13 09:32:29Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
MockSetup()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
           
 void contextInitialized(ServletContextEvent sce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockSetup

public MockSetup()
Method Detail

contextDestroyed

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

contextInitialized

public void contextInitialized(ServletContextEvent sce)
Specified by:
contextInitialized in interface ServletContextListener


MMBase 2.0-SNAPSHOT - null