Package javax.management.modelmbean

Examples of javax.management.modelmbean.DescriptorSupport.clone()


      try
      {
         DescriptorSupport d = new DescriptorSupport();
         d.setField("foo", "bar");
        
         Descriptor clone = (Descriptor)d.clone();
         assertTrue(clone.getFieldValue("foo").equals("bar"));
      }
      catch (AssertionFailedError e)
      {
         throw e;
View Full Code Here


            new DescriptorSupport(new String[] {"Name", "Rank", "SquareS",
                                                "NULL", "NuMbErS"},
                                  new Object[] {"Foo McBar", "lowly",
                                                squares.clone(), null,
                                                numbers});
        Descriptor sq3 = (Descriptor) sq2.clone();
        Descriptor sq4 = ImmutableDescriptor.union(sq1, sq2);

        String[] names = sq1.getFieldNames();
        Object[] values = sq1.getFieldValues((String[]) null);
        Object[] values2 = sq1.getFieldValues(names);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.