Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4886011

Modify toString() of queries so it is reversible

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7
    • 1.2.0, 5.0
    • core-svc

      It should be possible to take a QueryExp consisting only of standard JMX classes and produce a string from it that can be parsed to reconstruct the original QueryExp. This is particularly useful for JSR 160 (JMX Remote API) connectors based on text protocols such as SOAP. The client side of such a connector presents the MBeanServerConnection interface, including methods queryNames and queryMBeans. These methods are invoked with an object of type QueryExp. Most such objects are manufactured by static methods in the Query class, and are of non-public classes. So it is not possible to introspect the query portably in any way other than toString() or serialization. If the toString() of the standard QueryExp classes in the JMX RI were reversible, we could propose it as an informal standard to other implementors.

            emcmanus Eamonn McManus
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: