karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [karaf-cave] branch master updated: Add start level in bundle
Date Fri, 15 Dec 2017 06:43:31 GMT
This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-cave.git


The following commit(s) were added to refs/heads/master by this push:
     new 8932257  Add start level in bundle
8932257 is described below

commit 8932257de1f30106e313b6c6296793c44201fe18
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
AuthorDate: Fri Dec 15 07:43:07 2017 +0100

    Add start level in bundle
---
 .../src/main/java/org/apache/karaf/cave/deployer/api/Bundle.java | 9 +++++++++
 .../apache/karaf/cave/deployer/service/impl/DeployerImpl.java    | 2 ++
 2 files changed, 11 insertions(+)

diff --git a/deployer/api/src/main/java/org/apache/karaf/cave/deployer/api/Bundle.java b/deployer/api/src/main/java/org/apache/karaf/cave/deployer/api/Bundle.java
index 8c1ea92..fbdb4c2 100644
--- a/deployer/api/src/main/java/org/apache/karaf/cave/deployer/api/Bundle.java
+++ b/deployer/api/src/main/java/org/apache/karaf/cave/deployer/api/Bundle.java
@@ -25,6 +25,7 @@ public class Bundle {
     private String name;
     private String version;
     private String state;
+    private int startLevel;
 
     public String getId() {
         return id;
@@ -34,6 +35,14 @@ public class Bundle {
         this.id = id;
     }
 
+    public int getStartLevel() {
+        return this.startLevel;
+    }
+
+    public void setStartLevel(int startLevel) {
+        this.startLevel = startLevel;
+    }
+
     public String getName() {
         return name;
     }
diff --git a/deployer/service/src/main/java/org/apache/karaf/cave/deployer/service/impl/DeployerImpl.java
b/deployer/service/src/main/java/org/apache/karaf/cave/deployer/service/impl/DeployerImpl.java
index 56c8393..48cae88 100644
--- a/deployer/service/src/main/java/org/apache/karaf/cave/deployer/service/impl/DeployerImpl.java
+++ b/deployer/service/src/main/java/org/apache/karaf/cave/deployer/service/impl/DeployerImpl.java
@@ -435,11 +435,13 @@ public class DeployerImpl implements Deployer {
                 String bundleName = (String) compositeData.get("Name");
                 String bundleVersion = (String) compositeData.get("Version");
                 String bundleState = (String) compositeData.get("State");
+                Integer bundleStartLevel = (Integer) compositeData.get("Start Level");
                 org.apache.karaf.cave.deployer.api.Bundle bundle = new org.apache.karaf.cave.deployer.api.Bundle();
                 bundle.setId(bundleId.toString());
                 bundle.setName(bundleName);
                 bundle.setVersion(bundleVersion);
                 bundle.setState(bundleState);
+                bundle.setStartLevel(bundleStartLevel);
                 result.add(bundle);
             }
             return result;

-- 
To stop receiving notification emails like this one, please contact
['"commits@karaf.apache.org" <commits@karaf.apache.org>'].

Mime
View raw message