blob: b030616b9ee872be2724bc6cc87ae1e278179501 [file] [log] [blame]
package org.apache.felix.dm.lambda.samples.compositefactory;
import java.io.IOException;
import java.util.Dictionary;
import java.util.Hashtable;
import org.osgi.service.cm.Configuration;
import org.osgi.service.cm.ConfigurationAdmin;
public class Configurator {
volatile ConfigurationAdmin m_cm; // injected by reflection.
void start() throws IOException {
// Configure the ServiceConsumer component
Configuration c = m_cm.getConfiguration(ProviderFactory.class.getName(), null);
Dictionary<String, Object> props = new Hashtable<>();
props.put("foo", "bar");
c.update(props);
}
}