consumerRegistry = null;
}
public void onEvent(WebAppEvent event) {
if (event instanceof WebAppLifeCycleEvent) {
WebAppLifeCycleEvent lifeCycleEvent = (WebAppLifeCycleEvent) event;
WebApp webApp = event.getWebApp();
ServletContext context = webApp.getServletContext();
// if we see the WSRP admin GUI being deployed or undeployed, inject or remove services
if (WSRP_ADMIN_GUI_CONTEXT_PATH.equals(webApp.getContextPath())) {
switch (lifeCycleEvent.getType()) {
case WebAppLifeCycleEvent.ADDED:
context.setAttribute("ConsumerRegistry", consumerRegistry);
context.setAttribute("ProducerConfigurationService", producer.getConfigurationService());
break;
case WebAppLifeCycleEvent.REMOVED: