Uploaded image for project: 'Commons Modeler'
  1. Commons Modeler
  2. MODELER-8

[modeler] AttributeChangeNotification sent before attribute changes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      Operating System: Windows 2000
      Platform: PC

    • Bugzilla Id:
      32362

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pmouawad Philippe Mouawad
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: