Core: вывод запущенных бандлов
This commit is contained in:
@@ -29,7 +29,6 @@ public class HostActivator implements BundleActivator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(BundleContext bundleContext) throws Exception {
|
public void start(BundleContext bundleContext) throws Exception {
|
||||||
logger.trace("call [HostActivator.start(BundleContext)]");
|
|
||||||
List<Bundle> bundleList = new ArrayList<>();
|
List<Bundle> bundleList = new ArrayList<>();
|
||||||
|
|
||||||
Files.list(BUNDLES_DIR).forEach(path -> {
|
Files.list(BUNDLES_DIR).forEach(path -> {
|
||||||
@@ -44,11 +43,12 @@ public class HostActivator implements BundleActivator {
|
|||||||
});
|
});
|
||||||
|
|
||||||
for (Bundle bundle : bundleList) {
|
for (Bundle bundle : bundleList) {
|
||||||
logger.trace("{} | {} | State: {}", bundle.getBundleId(),
|
logger.trace("{} | {} | {}",
|
||||||
bundle.getSymbolicName(), bundle.getState());
|
bundle.getBundleId(),
|
||||||
|
bundle.getSymbolicName(),
|
||||||
|
bundle.getVersion());
|
||||||
if (bundle.getState() == Bundle.INSTALLED) {
|
if (bundle.getState() == Bundle.INSTALLED) {
|
||||||
bundle.start();
|
bundle.start();
|
||||||
logger.trace("\tStarted");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user