]
Thomas Diesler updated JBOSGI-267:
----------------------------------
Fix Version/s: Framework 1.0.0 Alpha4
(was: Framework 1.0.x)
Allow multiple bundles to change state at once
----------------------------------------------
Key: JBOSGI-267
URL:
https://jira.jboss.org/jira/browse/JBOSGI-267
Project: JBoss OSGi
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Core Framework
Reporter: Thomas Diesler
Assignee: Ales Justin
Fix For: Framework 1.0.0 Alpha4
Currently the BundleManager can only reslove bundles one-by-one
deployerClient.change(unit.getName(), DeploymentStages.CLASSLOADER);
deployerClient.checkComplete(unit.getName());
bundleState.changeState(Bundle.RESOLVED);
this results in uglyness in PackageAdmin
int resolved = 1;
while (resolved > 0)
{
resolved = 0;
Iterator<OSGiBundleState> it = resolvableBundles.iterator();
while (it.hasNext())
{
OSGiBundleState bundleState = it.next();
if (bundleManager.resolveBundle(bundleState, false))
{
it.remove();
resolved++;
}
}
}
PackageAdmin should be able to use an API that resolves multiple deployemnts at once.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: