use of org.apache.karaf.kar.internal.KarServiceImpl in project karaf by apache.
the class Activator method doStart.
protected void doStart() throws Exception {
FeaturesService featuresService = getTrackedService(FeaturesService.class);
if (featuresService == null) {
return;
}
boolean noAutoRefreshBundles = getBoolean("noAutoRefreshBundles", false);
String karStorage = getString("karStorage", System.getProperty("karaf.data") + File.separator + "kar");
KarServiceImpl karService = new KarServiceImpl(System.getProperty("karaf.base"), karStorage, featuresService);
karService.setNoAutoRefreshBundles(noAutoRefreshBundles);
register(KarService.class, karService);
KarsMBeanImpl mbean = new KarsMBeanImpl();
mbean.setKarService(karService);
registerMBean(mbean, "type=kar");
}
Aggregations