Package org.apache.felix.ipojo.runtime.core.components

Examples of org.apache.felix.ipojo.runtime.core.components.Bean


    Instance complex1(BundleContext bc) throws FileNotFoundException {

        File file = bc.getBundle().getDataFile("file1.txt");
        write(file, "I'm file 1");

        Bean bean = new Bean();
        bean.setMessage("I'm 1");
        bean.setCount(1);

        return instance().of(MyComplexComponent.class)
                .with("file").setto(file)
                .with("bean").setto(bean)
                .with("map").setto(map(pair("a", "b"), pair("c", "d")));
View Full Code Here


    Instance complex2(BundleContext bc) throws FileNotFoundException {

        File file = bc.getBundle().getDataFile("file2.txt");
        write(file, "I'm file 2");

        Bean bean = new Bean();
        bean.setMessage("I'm 2");
        bean.setCount(2);

        return instance().of(MyComplexComponent.class)
                .with("file").setto(file)
                .with("bean").setto(bean)
                .with("map").setto(map(pair("a", "b2"), pair("c", "d2")));
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.runtime.core.components.Bean

Copyright © 2018 www.massapicom. 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.