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

Examples of org.apache.felix.ipojo.runtime.core.services.CheckService.map()


                ".components.annotations.ComponentWithTwoSetters", configuration);

        CheckService check = ipojoHelper.getServiceObjectByName(CheckService.class, instance.getInstanceName());
        assertNotNull(check);

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
View Full Code Here


        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
        assertEquals(bc, context);
    }

    @Test
View Full Code Here

                ".components.annotations.ComponentWithTwoFields", configuration);

        CheckService check = ipojoHelper.getServiceObjectByName(CheckService.class, instance.getInstanceName());
        assertNotNull(check);

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
View Full Code Here

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
        assertEquals(bc, context);
    }

    @Test
View Full Code Here

                ".components.annotations.ComponentWithTwoConstructorParams", configuration);

        CheckService check = ipojoHelper.getServiceObjectByName(CheckService.class, instance.getInstanceName());
        assertNotNull(check);

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
View Full Code Here

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
        assertEquals(bc, context);
    }

    /**
 
View Full Code Here

                ".components.annotations.ComponentWithThreeConstructorParams", configuration);

        CheckService check = ipojoHelper.getServiceObjectByName(CheckService.class, instance.getInstanceName());
        assertNotNull(check);

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
View Full Code Here

        BundleContext context = (BundleContext) check.map().get("component");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
        assertEquals(bc, context);

        context = (BundleContext) check.map().get("bc");
        assertNotNull(context);
View Full Code Here

        context = (BundleContext) check.map().get("instance");
        assertNotNull(context);
        assertEquals(bc, context);

        context = (BundleContext) check.map().get("bc");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());
    }

}
View Full Code Here

                ".components.mix.MixWithProperties1", configuration);

        CheckService check = ipojoHelper.getServiceObjectByName(CheckService.class, instance.getInstanceName());
        assertNotNull(check);

        BundleContext context = (BundleContext) check.map().get("context");
        assertNotNull(context);
        assertEquals(getTestBundle().getSymbolicName(), context.getBundle().getSymbolicName());

        assertEquals("hello", check.map().get("message"));
    }
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.