jdk/src/share/classes/javax/management/JMX.java
changeset 21656 d4c777ccb1db
parent 18805 b359f8adc8ad
child 23010 6dadb192ad81
equal deleted inserted replaced
21655:55f32ae4f920 21656:d4c777ccb1db
   215                                       boolean notificationEmitter) {
   215                                       boolean notificationEmitter) {
   216         return createProxy(connection, objectName, interfaceClass, notificationEmitter, false);
   216         return createProxy(connection, objectName, interfaceClass, notificationEmitter, false);
   217     }
   217     }
   218 
   218 
   219     /**
   219     /**
   220      * <p>Make a proxy for an MXBean in a local or remote
   220      * Make a proxy for an MXBean in a local or remote MBean Server.
   221      * MBean Server.</p>
       
   222      *
   221      *
   223      * <p>If you have an MBean Server {@code mbs} containing an
   222      * <p>If you have an MBean Server {@code mbs} containing an
   224      * MXBean with {@link ObjectName} {@code name}, and if the
   223      * MXBean with {@link ObjectName} {@code name}, and if the
   225      * MXBean's management interface is described by the Java
   224      * MXBean's management interface is described by the Java
   226      * interface {@code MyMXBean}, you can construct a proxy for
   225      * interface {@code MyMXBean}, you can construct a proxy for
   251      * getAttribute}{@code (name, "SimpleAttribute")}.</p>
   250      * getAttribute}{@code (name, "SimpleAttribute")}.</p>
   252      *
   251      *
   253      * <li><p>{@code proxy.setSimpleAttribute("whatever")} will result
   252      * <li><p>{@code proxy.setSimpleAttribute("whatever")} will result
   254      * in a call to {@code mbs.}{@link
   253      * in a call to {@code mbs.}{@link
   255      * MBeanServerConnection#setAttribute setAttribute}<code>(name,
   254      * MBeanServerConnection#setAttribute setAttribute}<code>(name,
   256      * new Attribute("SimpleAttribute", "whatever"))</code>.<p>
   255      * new Attribute("SimpleAttribute", "whatever"))</code>.</p>
   257      *
   256      *
   258      *     <p>Because {@code String} is a <em>simple type</em>, in the
   257      *     <p>Because {@code String} is a <em>simple type</em>, in the
   259      *     sense of {@link javax.management.openmbean.SimpleType}, it
   258      *     sense of {@link javax.management.openmbean.SimpleType}, it
   260      *     is not changed in the context of an MXBean.  The MXBean
   259      *     is not changed in the context of an MXBean.  The MXBean
   261      *     proxy behaves the same as a Standard MBean proxy (see
   260      *     proxy behaves the same as a Standard MBean proxy (see