commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32362] New: - AttributeChangeNotification sent before attribute changes
Date Tue, 23 Nov 2004 16:22:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32362>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32362

           Summary: AttributeChangeNotification sent before attribute
                    changes
           Product: Commons
           Version: 4.0
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Modeler
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: EXTERNAL.Z19PMOUA@decathlon.com


I don't know if it's a bug, but in the class 
org.apache.commons.modeler.BaseModelMBean, the Notification that an attribute 
value changed is sent before the value changes (The developer seemed to have a 
doubt // XXX Is it before or after ?), so I have the following problem.
I have an MBean that extends BaseModelMBean and implements NotificationListener 
to get informed of modification on the ManagedResource, but since the 
notification is sent before the value is modified, I can't rely on the state of 
the managed resource.
Furthermore, in the Javadocs, they say:
It's up to the MBean owning the attribute of interest to create and send 
attribute change notifications when the attribute change occurs

And for ATTRIBUTE_CHANGE => Notification type which indicates that the observed 
MBean attribute value HAS CHANGED.

The JAR Version is :
Implementation-Version: 1.1.0

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message