Examples of AbstractMapMetaData


Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertList(getValue(map));
   }
  
   public void testMapWithSet() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithSet.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertSet(getKey(map));
      assertSet(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertSet(getValue(map));
   }
  
   public void testMapWithArray() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithArray.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertArray(getKey(map));
      assertArray(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertArray(getValue(map));
   }
  
   public void testMapWithMap() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithMap.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertMap(getKey(map));
      assertMap(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertMap(getValue(map));
   }
  
   public void testMapWithNull() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithNull.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertNullValue(getKey(map));
      assertNullValue(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertNullValue(getValue(map));
   }
  
   public void testMapWithThis() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithThis.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertThis(getKey(map));
      assertThis(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertThis(getValue(map));
   }
  
   public void testMapWithWildcard() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithWildcard.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertWildcard(getKey(map));
      assertWildcard(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      assertWildcard(getValue(map));
   }
  
   public void testMapWithBean() throws Exception
   {
      AbstractMapMetaData map = getMap("MapWithBean.xml");
      assertNull(map.getType());
      assertNull(map.getKeyType());
      assertNull(map.getValueType());
      assertBean(getKey(map));
      assertBean(getValue(map));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
     
      ArrayList<ParameterMetaData> constructorParams = new ArrayList<ParameterMetaData>();
      AbstractParameterMetaData pmd = new AbstractParameterMetaData();
      pmd.setType("java.util.Map");
      AbstractMapMetaData collection = new AbstractMapMetaData();
      collection.setConfigurator(configurator);
      collection.setKeyType("java.lang.String");
      collection.setValueType("java.lang.String");
      collection.put(new StringValueMetaData("1"), new StringValueMetaData("2"));
      pmd.setValue(collection);
      constructorParams.add(pmd);
      AbstractConstructorMetaData cmd = new AbstractConstructorMetaData();
      bmd.setConstructor(cmd);
      cmd.setParameters(constructorParams);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
     
      ArrayList<ParameterMetaData> constructorParams = new ArrayList<ParameterMetaData>();
      AbstractParameterMetaData pmd = new AbstractParameterMetaData();
      pmd.setType("java.util.Hashtable");
      AbstractMapMetaData collection = new AbstractMapMetaData();
      collection.setConfigurator(configurator);
      collection.setType("java.util.Properties");
      collection.setKeyType("java.lang.String");
      collection.setValueType("java.lang.String");
      collection.put(new StringValueMetaData("1"), new StringValueMetaData("2"));
      pmd.setValue(collection);
      constructorParams.add(pmd);
      AbstractConstructorMetaData cmd = new AbstractConstructorMetaData();
      bmd.setConstructor(cmd);
      cmd.setParameters(constructorParams);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData

   protected PropHolder instantiateHolder(KernelController controller) throws Throwable
   {
      // ldap
      BeanMetaDataBuilder ldap = BeanMetaDataBuilderFactory.createBuilder("ldap", LDAPFactory.class.getName());
      AbstractMapMetaData map = new AbstractMapMetaData();
      map.setKeyType(String.class.getName());
      map.setValueType(String.class.getName());
      map.put(new StringValueMetaData("foo.bar.key"), new StringValueMetaData("QWERT"));
      map.put(new StringValueMetaData("xyz.key"), new StringValueMetaData(" QWERT "));
      ldap.addConstructorParameter(Map.class.getName(), map);
      LDAPFactory lf = (LDAPFactory)instantiate(controller, ldap.getBeanMetaData());
      assertNotNull(lf);

      // simple one
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.