Package org.jboss.metatype.api.values

Examples of org.jboss.metatype.api.values.MetaValueFactory.create()


         }
        
         ObjectName on = chInfo.getChannelObjectName();
         if (on != null)
         {
            data.put("channelObjectName", valueFactory.create(on));
         }
        
         data.put("protocolStackConfiguration", CONFIG_MAPPER.createMetaValue(getMetaType(), chInfo.getProtocolStackConfiguration()));
        
         List<ObjectName> protNames = chInfo.getProtocolObjectNames();
View Full Code Here


         if (protNames != null)
         {
            List<MetaValue> onValues = new ArrayList<MetaValue>();
            for (ObjectName protON : protNames)
            {
               onValues.add(valueFactory.create(protON));
            }
            data.put("protocolObjectNames",
                  new CollectionValueSupport(PROTOCOL_OBJECT_NAMES_TYPE,
                        onValues.toArray(new MetaValue[onValues.size()])));
         }
View Full Code Here

      CompositeDataMetaValueBuilder builder = new CompositeDataMetaValueBuilder();
      builder.setMetaValueFactory(metaValueFactory);
      metaValueFactory.setBuilder(CompositeData.class, builder);
      metaValueFactory.setBuilder(CompositeDataSupport.class, builder);

      MetaValue threadInfoMV = metaValueFactory.create(threadInfo);
      log.debug("ThreadInfo.MV: "+threadInfoMV);
      assertTrue(threadInfoMV instanceof CompositeValue);
      CompositeValue tiCV = CompositeValue.class.cast(threadInfoMV);
      ThreadInfo threadInfo2 = ManagementFactoryUtils.unwrapThreadInfo(tiCV);
      assertEquals(threadInfo.getLockOwnerName(), threadInfo2.getLockOwnerName());
View Full Code Here

      String[] signature = {"long"};
      Object result = server.invoke(tname, "getThreadInfo", params, signature);
      threadInfo = mbean.getThreadInfo(threadID);
      log.debug("getThreadInfo()-OpenType: "+result);
      assertTrue(result instanceof CompositeDataSupport);
      MetaValue resultMV = metaValueFactory.create(result);
      assertTrue(resultMV instanceof CompositeValue);
      CompositeValue resultCV = (CompositeValue) resultMV;
      log.debug("getThreadInfo()-MetaType: "+resultCV);
     
      ThreadInfo resultTI = ManagementFactoryUtils.unwrapThreadInfo(resultCV);
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.