Author: chris.laprun(a)jboss.com
Date: 2007-04-26 13:00:29 -0400 (Thu, 26 Apr 2007)
New Revision: 7082
Modified:
trunk/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridge.java
Log:
- Correctly propagate event context.
Modified: trunk/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridge.java
===================================================================
---
trunk/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridge.java 2007-04-26
16:12:51 UTC (rev 7081)
+++
trunk/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridge.java 2007-04-26
17:00:29 UTC (rev 7082)
@@ -22,24 +22,24 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.user;
+import org.jboss.mx.util.MBeanProxy;
+import org.jboss.mx.util.MBeanProxyCreationException;
+import org.jboss.mx.util.MBeanServerLocator;
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.portal.api.event.PortalEvent;
+import org.jboss.portal.api.event.PortalEventContext;
+import org.jboss.portal.api.event.PortalEventListener;
+import org.jboss.portal.api.user.event.UserAuthenticationEvent;
+import org.jboss.portal.api.user.event.UserSessionEvent;
import org.jboss.portal.core.event.PortalEventListenerRegistry;
import org.jboss.portal.core.impl.api.CorePortalRuntimeContext;
-import org.jboss.portal.api.user.event.UserSessionEvent;
-import org.jboss.portal.api.user.event.UserAuthenticationEvent;
-import org.jboss.portal.api.event.PortalEvent;
-import org.jboss.portal.api.event.PortalEventListener;
-import org.jboss.portal.api.event.PortalEventContext;
-import org.jboss.mx.util.MBeanProxy;
-import org.jboss.mx.util.ObjectNameFactory;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.mx.util.MBeanProxyCreationException;
-import javax.servlet.http.HttpSessionListener;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpSessionAttributeListener;
+import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
-import javax.servlet.http.HttpSessionBindingEvent;
-import javax.servlet.ServletContextListener;
-import javax.servlet.ServletContextEvent;
+import javax.servlet.http.HttpSessionListener;
import java.util.Iterator;
/**
@@ -122,7 +122,7 @@
private void fireEvent(PortalEventContext eventContext, PortalEvent event)
{
- for (Iterator i = listenerRegistry.getListeners().iterator();i.hasNext();)
+ for (Iterator i = listenerRegistry.getListeners().iterator(); i.hasNext();)
{
Object o = i.next();
if (o instanceof PortalEventListener)
@@ -130,7 +130,7 @@
PortalEventListener listener = (PortalEventListener)o;
try
{
- listener.onEvent(null, event);
+ listener.onEvent(eventContext, event);
}
catch (Exception e)
{