If the framework was launched with the org. framework launching property set to
managed, then all registered
collision hook services will be called during framework bundle install and
update operations to determine if an install or update operation will result
in a bundle symbolic name and version collision.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | INSTALLING
Specifies a bundle install operation is being performed. |
| public static final int | UPDATING
Specifies a bundle update operation is being performed. |
| Modifier and Type | Method and Description |
|---|---|
| public void | filterCollisions(int
The operation type. Must be the value of
operationType, Bundle installing or updating.The target bundle used to determine what collision
candidates to filter. target, Collection<Bundle> The collection of collision candidates. The
collection supports all the optional collisionCandidates)Collection operations
except add and addAll. Attempting to add to the
collection will result in an UnsupportedOperationException
. The collection is not synchronized.Filter bundle collisions hook method. |
| INSTALLING | back to summary |
|---|---|
| public static final int INSTALLING Specifies a bundle install operation is being performed. | |
| UPDATING | back to summary |
|---|---|
| public static final int UPDATING Specifies a bundle update operation is being performed. | |
| filterCollisions | back to summary |
|---|---|
| public void filterCollisions(int operationType, Bundle target, Collection<Bundle> collisionCandidates) Filter bundle collisions hook method. This method is called during the
install or update operation. The operation type will be
| |