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

Examples of org.apache.felix.ipojo.runtime.core.services.BazService.hello()


        ComponentInstance ci = ipojoHelper.createComponentInstance("org.apache.felix.ipojo.runtime.core.components" +
                ".nativ.NativeComponent");

        BazService baz = osgiHelper.getServiceObject(BazService.class, "(instance.name=" + ci.getInstanceName() +")");
        assertEquals("foo: Test program of JNI.", baz.hello(""));
    }


    public static Option buildBundleWithNativeLibraries() {
        File out = new File("target/tested/test-bundle-with-native.jar");
View Full Code Here


        List<BazService> services = osgiHelper.getServiceObjects(BazService.class);
        assertEquals(1, services.size());

        BazService baz = services.get(0);
        assertEquals("Hello Guillaume", baz.hello("Guillaume"));
        ipojoHelper.dispose();
    }

    @Test
    public void testMethodStereotype() {
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.