Package org.apache.aries.blueprint.di

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


        testPojoB(obj5, URI.create("urn:myuri-dynamic"), 20);
       
        Object obj6 = repository.create("multipleInt");
        testMultiple(obj6, null, 123, null);
       
        Object obj7 = repository.create("multipleInteger");
        testMultiple(obj7, null, -1, new Integer(123));
       
        Object obj8 = repository.create("multipleString");
        testMultiple(obj8, "123", -1, null);
View Full Code Here


        testMultiple(obj6, null, 123, null);
       
        Object obj7 = repository.create("multipleInteger");
        testMultiple(obj7, null, -1, new Integer(123));
       
        Object obj8 = repository.create("multipleString");
        testMultiple(obj8, "123", -1, null);

        // TODO: check the below tests when the incoherence between TCK / spec is solved
//        try {
//            graph.create("multipleStringConvertable");
View Full Code Here

//            fail("Did not throw exception");
//        } catch (RuntimeException e) {
//            // we expect exception
//        }
       
        Object obj10 = repository.create("multipleFactory1");
        testMultiple(obj10, null, 1234, null);

        Object obj11 = repository.create("multipleFactory2");
        testMultiple(obj11, "helloCreate-boolean", -1, null);       
       
View Full Code Here

//        }
       
        Object obj10 = repository.create("multipleFactory1");
        testMultiple(obj10, null, 1234, null);

        Object obj11 = repository.create("multipleFactory2");
        testMultiple(obj11, "helloCreate-boolean", -1, null);       
       
        try {
            repository.create("multipleFactoryNull");
            fail("Did not throw exception");
View Full Code Here

        Object obj11 = repository.create("multipleFactory2");
        testMultiple(obj11, "helloCreate-boolean", -1, null);       
       
        try {
            repository.create("multipleFactoryNull");
            fail("Did not throw exception");
        } catch (RuntimeException e) {
            // we expect exception
            // TODO: check the exception string?
        }
View Full Code Here

        } catch (RuntimeException e) {
            // we expect exception
            // TODO: check the exception string?
        }
       
        Object obj12 = repository.create("multipleFactoryTypedNull");
        testMultiple(obj12, "hello-boolean", -1, null);

        Object obj13 = repository.create("mapConstruction");
        Map<String, String> constructionMap = new HashMap<String, String>();
        constructionMap.put("a", "b");
View Full Code Here

        }
       
        Object obj12 = repository.create("multipleFactoryTypedNull");
        testMultiple(obj12, "hello-boolean", -1, null);

        Object obj13 = repository.create("mapConstruction");
        Map<String, String> constructionMap = new HashMap<String, String>();
        constructionMap.put("a", "b");
        testMultiple(obj13, constructionMap);
        Object obj14 = repository.create("propsConstruction");
        Properties constructionProperties = new Properties();
View Full Code Here

        Object obj13 = repository.create("mapConstruction");
        Map<String, String> constructionMap = new HashMap<String, String>();
        constructionMap.put("a", "b");
        testMultiple(obj13, constructionMap);
        Object obj14 = repository.create("propsConstruction");
        Properties constructionProperties = new Properties();
        constructionProperties.put("a", "b");
        testMultiple(obj14,  constructionProperties);

        Object obja = repository.create("mapConstructionWithDefaultType");
View Full Code Here

        Object obj14 = repository.create("propsConstruction");
        Properties constructionProperties = new Properties();
        constructionProperties.put("a", "b");
        testMultiple(obj14,  constructionProperties);

        Object obja = repository.create("mapConstructionWithDefaultType");
        Map<String, Date> mapa = new HashMap<String, Date>();
        // Months are 0-indexed
        Calendar calendar = new GregorianCalendar(2012, 0, 6);
        calendar.setTimeZone(TimeZone.getTimeZone("GMT"));
        mapa.put("date", new Date(calendar.getTimeInMillis()));
View Full Code Here

        Calendar calendar = new GregorianCalendar(2012, 0, 6);
        calendar.setTimeZone(TimeZone.getTimeZone("GMT"));
        mapa.put("date", new Date(calendar.getTimeInMillis()));
        testMultiple(obja, mapa);

        Object objc = repository.create("mapConstructionWithTypedEntries");
        Map mapc = new HashMap();
        mapc.put("boolean", Boolean.TRUE);
        mapc.put("double", 1.23);
        mapc.put("date", new Date(calendar.getTimeInMillis()));
        testMultiple(objc, mapc);
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.