Package com.yahoo.container.core.config
Class ApplicationBundleLoader
java.lang.Object
com.yahoo.container.core.config.ApplicationBundleLoader
Manages the set of installed and active/inactive bundles.
TODO: This class and the CollisionHook currently only handles a "current" and "previous" generation.
In order to correctly handle rapid reconfiguration and hence multiple generations, we need to
consider the graph generation number for each bundle.
- Author:
- gjoranv
-
Constructor Summary
ConstructorDescriptionApplicationBundleLoader
(Osgi osgi, FileAcquirerBundleInstaller bundleInstaller) -
Method Summary
Modifier and TypeMethodDescriptionList<com.yahoo.jdisc.application.BsnVersion>
Returns bsn:version for all active bundles.Set<org.osgi.framework.Bundle>
Must be called after useBundles() to report success or failure for the latest bundle generation.void
useBundles
(List<com.yahoo.config.FileReference> newFileReferences) Installs the given set of bundles and updates state for which bundles and file references that are active or should be uninstalled in case of success or failure.
-
Constructor Details
-
ApplicationBundleLoader
-
-
Method Details
-
activeBundlesBsnVersion
Returns bsn:version for all active bundles. -
useBundles
Installs the given set of bundles and updates state for which bundles and file references that are active or should be uninstalled in case of success or failure. -
completeGeneration
Must be called after useBundles() to report success or failure for the latest bundle generation.
-