Package org.apache.felix.dm

Examples of org.apache.felix.dm.DependencyManager.clear()


        e.waitForStep(3, 10000);
       
        m.remove(c3);
        m.remove(c2);
        m.remove(c1);
        m.clear();
    }
   
    /**
     * Checks that a ServiceDependency propagates the dependency service properties to the provided service properties,
     * using a callback method.
View Full Code Here


        m.add(c1);
        m.add(c2);
        m.add(c3);

        e.waitForStep(3, 10000);
        m.clear();
    }
   
    public static class C1 {
        private Map m_props;
        private Ensure m_ensure;
View Full Code Here

        s1Properties.put("foo", "bar2");
        s1.setServiceProperties(s1Properties);
       
        e.waitForStep(5, 5000);

        m.clear();
    }
}
View Full Code Here

        e.waitForStep(3, 5000);
        // trigger a 'change' in our resource
        provider.change();
        // wait until the changed callback is invoked
        e.waitForStep(4, 5000);
        m.clear();
     }
   
    static class ResourceAdapter {
        protected URL m_resource; // injected by reflection.
        private Ensure m_ensure;
View Full Code Here

        .setRequired(true)
      )
    );
   
    Assert.assertEquals(numberOfServices, instance.getCount());
    m.clear();
    }
   
    public static interface Service {
    }
   
View Full Code Here

        m.remove(adapter);
       
        e.waitForStep(count * 3, 15000);
        m.remove(aspect2);
        e.step(count * 3 + 1);
        m.clear();
    }
       
    static interface OriginalService {
        public void invoke();

View Full Code Here

        m_ensure.waitForStep(13, 10000);
       
        // Remove the configuration
        m.remove(s1); // The stop method will remove the configuration
        m_ensure.waitForStep(16, 10000);
        m.clear();
    }

    public static class ConfigurationCreator {
        private volatile ConfigurationAdmin m_ca;
        private String m_key;
View Full Code Here

        check.put("a" + ASPECTS, "v" + ASPECTS + "-Modified");
        checkServiceProperties(check, clientImpl.getServiceProperties());

        // Clear all components.
        m_changeStep = null;
        m.clear();
    }   
   
    /**
     * This test does the following:
     *
 
View Full Code Here

        check.put("a" + ASPECTS, "v" + ASPECTS); // we only see top-level aspect service properties
        checkServiceProperties(check, clientImpl.getServiceProperties());
       
        // Clear all components.
        m_changeStep = null;
        m.clear();
    }   
   
    /**
     * This test does the following:
     *
 
View Full Code Here

        Ensure e = new Ensure();
        m.add(m.createResourceAdapterService("(&(path=/path/to/*.txt)(host=localhost))", false, null, "changed")
              .setImplementation(new ResourceAdapter(e)));
        m.add(m.createComponent().setImplementation(new ResourceProvider(e)).add(m.createServiceDependency().setService(ResourceHandler.class).setCallbacks("add", "remove")));
        e.waitForStep(3, 5000);
        m.clear();
     }
   
    static class ResourceAdapter {
        protected URL m_resource; // injected by reflection.
        private Ensure m_ensure;
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.