Author: linsun
Date: Wed Dec 2 16:24:16 2009
New Revision: 886192
URL: http://svn.apache.org/viewvc?rev=886192&view=rev
Log:
ARIES-61 return a bundle to the addingBundle so that it can be tracked by the
tracker correctly
Modified:
incubator/aries/trunk/util/src/main/java/org/apache/aries/util/tracker/AriesBundleTrackerCustomizer.java
Modified:
incubator/aries/trunk/util/src/main/java/org/apache/aries/util/tracker/AriesBundleTrackerCustomizer.java
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/util/src/main/java/org/apache/aries/util/tracker/AriesBundleTrackerCustomizer.java?rev=886192&r1=886191&r2=886192&view=diff
==============================================================================
---
incubator/aries/trunk/util/src/main/java/org/apache/aries/util/tracker/AriesBundleTrackerCustomizer.java
(original)
+++
incubator/aries/trunk/util/src/main/java/org/apache/aries/util/tracker/AriesBundleTrackerCustomizer.java
Wed Dec 2 16:24:16 2009
@@ -35,16 +35,11 @@
public Object addingBundle(Bundle b, BundleEvent event) {
customizedProcessBundle(b, event, Bundle.STARTING | Bundle.ACTIVE |
Bundle.STOPPING);
- return null;
+ return b;
}
public void modifiedBundle(Bundle b, BundleEvent event, Object arg2) {
- // we are only interested in uninstalled bundle state for composite
- // bundles
- // as we need to remove the bt off the bt factory
- if (event.getType() == BundleEvent.STOPPING) {
- customizedProcessBundle(b, event, 0);
- }
+ customizedProcessBundle(b, event, Bundle.STARTING | Bundle.ACTIVE |
Bundle.STOPPING);
}
public void removedBundle(Bundle b, BundleEvent event, Object arg2) {