Search in sources :

Example 1 with Activator

use of org.apache.felix.httplite.osgi.Activator in project felix by apache.

the class AbstractPojoSRTestCase method setUp.

/* (non-Javadoc)
     * @see junit.framework.TestCase#setUp()
     */
protected void setUp() throws Exception {
    super.setUp();
    // Initialize service registry
    ServiceLoader loader = ServiceLoader.load(PojoServiceRegistryFactory.class);
    registry = ((PojoServiceRegistryFactory) loader.iterator().next()).newPojoServiceRegistry(new HashMap());
    assertNotNull(registry);
    // Initialize bundle
    activator = new Activator();
    activator.start(registry.getBundleContext());
}
Also used : ServiceLoader(java.util.ServiceLoader) HashMap(java.util.HashMap) Activator(org.apache.felix.httplite.osgi.Activator)

Aggregations

HashMap (java.util.HashMap)1 ServiceLoader (java.util.ServiceLoader)1 Activator (org.apache.felix.httplite.osgi.Activator)1