use of org.apache.karaf.config.core.impl.ConfigRepositoryImpl in project karaf by apache.
the class EditCommandTest method setUp.
@Override
protected void setUp() throws Exception {
command = new EditCommand();
admin = createMock(ConfigurationAdmin.class);
command.setConfigRepository(new ConfigRepositoryImpl(admin));
session = new MockCommandSession();
command.setSession(session);
}
use of org.apache.karaf.config.core.impl.ConfigRepositoryImpl in project karaf by apache.
the class Activator method doStart.
protected void doStart() throws Exception {
ConfigurationAdmin configurationAdmin = getTrackedService(ConfigurationAdmin.class);
if (configurationAdmin == null) {
return;
}
ConfigRepository configRepository = new ConfigRepositoryImpl(configurationAdmin, new File(System.getProperty("karaf.etc")));
register(ConfigRepository.class, configRepository);
ConfigMBeanImpl configMBean = new ConfigMBeanImpl();
configMBean.setConfigRepo(configRepository);
registerMBean(configMBean, "type=config");
}
Aggregations