Package org.apache.aries.blueprint.di

Examples of org.apache.aries.blueprint.di.Repository.create()


        mapc.put("boolean", Boolean.TRUE);
        mapc.put("double", 1.23);
        mapc.put("date", new Date(calendar.getTimeInMillis()));
        testMultiple(objc, mapc);

        Object objb = repository.create("mapConstructionWithNonDefaultTypedEntries");
        Map mapb = new HashMap();
        mapb.put("boolean", Boolean.TRUE);
        mapb.put("double", 3.45);
        mapb.put("otherdouble", 10.2);
        testMultiple(objb, mapb);
View Full Code Here


        mapb.put("boolean", Boolean.TRUE);
        mapb.put("double", 3.45);
        mapb.put("otherdouble", 10.2);
        testMultiple(objb, mapb);
 
        Object objd = repository.create("mapConstructionWithNonDefaultTypedKeys");
        Map mapd = new HashMap();
        mapd.put(Boolean.TRUE, "boolean");
        mapd.put(42.42, "double");
        testMultiple(objd, mapd);
View Full Code Here

        Map mapd = new HashMap();
        mapd.put(Boolean.TRUE, "boolean");
        mapd.put(42.42, "double");
        testMultiple(objd, mapd);

        BeanF obj15 = (BeanF) repository.create("booleanWrapped");
        assertNotNull(obj15.getWrapped());
        assertEquals(false, (boolean) obj15.getWrapped());
        assertNull(obj15.getPrim());

        // TODO: check the below tests when the incoherence between TCK / spec is solved
View Full Code Here

        expectedMap.put(new Short((short)5), Boolean.TRUE);
       
        Object obj;
        PojoGenerics pojo;
       
        obj = repository.create("method");
        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedList, pojo.getList());
        assertEquals(expectedSet, pojo.getSet());
View Full Code Here

       
        assertEquals(expectedList, pojo.getList());
        assertEquals(expectedSet, pojo.getSet());
        assertEquals(expectedMap, pojo.getMap());
       
        obj = repository.create("constructorList");
        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedList, pojo.getList());
       
View Full Code Here

        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedList, pojo.getList());
       
        obj = repository.create("constructorSet");
        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedSet, pojo.getSet());
       
View Full Code Here

        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedSet, pojo.getSet());
       
        obj = repository.create("constructorMap");
        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedMap, pojo.getMap());
       
View Full Code Here

        assertTrue(obj instanceof PojoGenerics);
        pojo = (PojoGenerics) obj;
       
        assertEquals(expectedMap, pojo.getMap());
       
        obj = repository.create("genericPojo");
        assertTrue(obj instanceof Primavera);
        assertEquals("string", ((Primavera) obj).prop);
       
        obj = repository.create("doubleGenericPojo");
        assertTrue(obj instanceof Primavera);
View Full Code Here

       
        obj = repository.create("genericPojo");
        assertTrue(obj instanceof Primavera);
        assertEquals("string", ((Primavera) obj).prop);
       
        obj = repository.create("doubleGenericPojo");
        assertTrue(obj instanceof Primavera);
        assertEquals("stringToo", ((Primavera) obj).prop);
    }
   
    public void testCircular() throws Exception {
View Full Code Here

        String name = recipe.getName();
        Repository repo = blueprintContainer.getRepository();
        if (repo.getRecipe(name) != recipe) {
            repo.putRecipe(name, recipe);
        }
        return repo.create(name);
    }
  
    private String getComponentName() {
        if (metadata.getServiceComponent() instanceof RefMetadata) {
            RefMetadata ref = (RefMetadata) metadata.getServiceComponent();
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.