Search in sources :

Example 1 with KarsMBeanImpl

use of org.apache.karaf.kar.internal.KarsMBeanImpl 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");
}
Also used : KarsMBeanImpl(org.apache.karaf.kar.internal.KarsMBeanImpl) KarServiceImpl(org.apache.karaf.kar.internal.KarServiceImpl) FeaturesService(org.apache.karaf.features.FeaturesService)

Aggregations

FeaturesService (org.apache.karaf.features.FeaturesService)1 KarServiceImpl (org.apache.karaf.kar.internal.KarServiceImpl)1 KarsMBeanImpl (org.apache.karaf.kar.internal.KarsMBeanImpl)1