[jboss-user] [JBoss Seam] - Event with @Observer not being fired
terryb
do-not-reply at jboss.com
Tue Jan 22 19:10:29 EST 2008
Seam 2.0.1CR1
Method with @Observer("org.jboss.seam.security.loggedOut") is not being recognised as event to fire.
I also tried org.jboss.seam.loggedOut and @Observer(Identity.EVENT_LOGGED_OUT) but same thing.
Using debugger shows Seam's Identity.logout() attempts to raise event but there is no event to be raised as
Event.raiseEvent() method shows List variable 'observers' being null.
Any clues please?
| Seam Events.java
|
| public void raiseEvent(String type, Object... parameters)
| {
| ...
| List<Init.ObserverMethod> observers = Init.instance().getObserverMethods(type);
| List<Init.ObserverMethod> observers = Init.instance().getObserverMethods(type);
| if (observers!=null)
| {
| ...
|
| }
| }
|
|
|
| My Authenticator.java
|
| @Observer("org.jboss.seam.security.loggedOut")
| public void logout() {
| activityLog.logOrgUser(orgUserAuthenticated.getUser(), ActivityLogger.Code.LOGOUT, null);
| }
|
| More details on this post:
| http://jboss.com/index.html?module=bb&op=viewtopic&t=128184
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122425#4122425
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122425
More information about the jboss-user
mailing list