Examples of unwrapMetaValue()


Examples of org.jboss.ha.framework.server.managed.ProtocolStackConfigurationsMapper.unwrapMetaValue()

      ProtocolStackConfigurationsMapper testee = new ProtocolStackConfigurationsMapper();
     
      MetaValue metaValue = testee.createMetaValue(ProtocolStackConfigurationsMapper.TYPE, map);
      ManagedObjectTestUtil.validateProtocolStackConfigurations(metaValue, new String[]{"unshared1", "shared1"});
     
      Map<String, ProtocolStackConfigInfo> restored = testee.unwrapMetaValue(metaValue);
      assertEquals(map.keySet(), restored.keySet());
     
      // FIXME go deeper
   }
View Full Code Here

Examples of org.jboss.metatype.spi.values.MetaMapper.unwrapMetaValue()

         MetaMapper metaMapper = property.getTransientAttachment(MetaMapper.class);
         Type mappedType = null;
         if(metaMapper != null)
         {
            mappedType = metaMapper.mapToType();
            plainValue = metaMapper.unwrapMetaValue(value);
         }
         else
         {
            PropertyInfo propertyInfo = beanInfo.getProperty(name);
            plainValue = metaValueFactory.unwrap(value, propertyInfo.getType());
View Full Code Here

Examples of org.jboss.metatype.spi.values.MetaMapper.unwrapMetaValue()

         Object uvalue = null;
         if(prop != null)
         {
            MetaMapper mapper = prop.getTransientAttachment(MetaMapper.class);
            if(mapper != null)
               uvalue = mapper.unwrapMetaValue(value);
            else
               uvalue = unwrap(value);
         }
         else
         {
View Full Code Here

Examples of org.jboss.metatype.spi.values.MetaMapper.unwrapMetaValue()

         Object uvalue = null;
         if(prop != null)
         {
            MetaMapper mapper = prop.getTransientAttachment(MetaMapper.class);
            if(mapper != null)
               uvalue = mapper.unwrapMetaValue(value);
            else
               uvalue = unwrap(value);
         }
         else
         {
View Full Code Here

Examples of org.jboss.metatype.spi.values.MetaMapper.unwrapMetaValue()

      PropertyInfo propertyInfo = beanInfo.getProperty(name);
      // Look for a property MetaMapper
      MetaMapper metaMapper = property.getTransientAttachment(MetaMapper.class);
      if(metaMapper != null)
      {
         return metaMapper.unwrapMetaValue(value);
      }
      return metaValueFactory.unwrap(value, propertyInfo.getType());
   }

   protected void setValue(BeanInfo beanInfo, PropertyInfo propertyInfo, Object object, Object unwrapValue)
View Full Code Here

Examples of org.jboss.metatype.spi.values.MetaMapper.unwrapMetaValue()

         MetaMapper metaMapper = property.getTransientAttachment(MetaMapper.class);
         Type mappedType = null;
         if(metaMapper != null)
         {
            mappedType = metaMapper.mapToType();
            plainValue = metaMapper.unwrapMetaValue(value);
         }
         else
         {
            PropertyInfo propertyInfo = beanInfo.getProperty(name);
            plainValue = metaValueFactory.unwrap(value, propertyInfo.getType());
View Full Code Here

Examples of org.jboss.services.binding.managed.ServiceBindingMetadataMapper.unwrapMetaValue()

      ServiceBindingMetadata nulls = new ServiceBindingMetadata("nulls", null, null, 20);
      input.add(nulls);
     
      ServiceBindingMetadataMapper mapper = new ServiceBindingMetadataMapper();
      MetaValue wrapped = mapper.createMetaValue(null, input);
      Set<ServiceBindingMetadata> output = mapper.unwrapMetaValue(wrapped);
     
      assertEquals(input, output);
      for (ServiceBindingMetadata md : output)
      {
         if ("complete".equals(md.getServiceName()))
View Full Code Here

Examples of org.jboss.services.binding.managed.ServiceBindingSetMapper.unwrapMetaValue()

      ServiceBindingSet noOverride = new ServiceBindingSet("noOverride", "localhost", 900);
      input.add(noOverride);
     
      ServiceBindingSetMapper mapper = new ServiceBindingSetMapper();
      MetaValue wrapped = mapper.createMetaValue(null, input);
      Set<ServiceBindingSet> output = mapper.unwrapMetaValue(wrapped);
     
      for (ServiceBindingSet outputSet : output)
      {
         if ("withOverride".equals(outputSet.getName()))
         {
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.