]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.osgi/src/main/java/org/argeo/slc/osgi/OsgiRuntime.java
Remove legacy OSGi bundle monitoring
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.osgi / src / main / java / org / argeo / slc / osgi / OsgiRuntime.java
index b8a865025b7b915e1b3485ff396d96f2e24792b1..cacdf7aa9b970b904b9859a6e3a2ea06a8f1f910 100644 (file)
@@ -77,6 +77,15 @@ public class OsgiRuntime implements BundleContextAware, ResourceLoaderAware,
                return new OsgiBundle(bundle);
        }
 
+       public void updateModule(NameVersion nameVersion) {
+               Bundle bundle = findBundle(nameVersion);
+               try {
+                       bundle.update();
+               } catch (BundleException e) {
+                       throw new SlcException("Cannot update " + bundle, e);
+               }
+       }
+
        public void uninstallModule(NameVersion nameVersion) {
                Bundle bundle = findBundle(nameVersion);
                try {