public interface BundleDelta extends Comparable<BundleDelta>
This interface is not intended to be implemented by clients. The
StateObjectFactory
should be used to construct instances.
Modifier and Type | Field and Description |
---|---|
static int |
ADDED
Delta type constant (bit mask) indicating that the bundle has been added
to the new state.
|
static int |
LINKAGE_CHANGED
Deprecated.
this type is no longer valid
|
static int |
OPTIONAL_LINKAGE_CHANGED
Deprecated.
this type is no longer valid
|
static int |
REMOVAL_COMPLETE
Delta type constant (bit mask) indicating that the this bundle has
completed a pending removal.
|
static int |
REMOVAL_PENDING
Delta type constant (bit mask) indicating that the this bundle is
pending a removal.
|
static int |
REMOVED
Delta type constant (bit mask) indicating that the bundle is no longer present in
the new state.
|
static int |
RESOLVED
Delta type constant (bit mask) indicating that the bundle has become resolved
in the new state.
|
static int |
UNRESOLVED
Delta type constant (bit mask) indicating that the bundle has become unresolved
in the new state.
|
static int |
UPDATED
Delta type constant (bit mask) indicating that the bundle has been updated
between the old and new state.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BundleDelta obj)
Answers an integer indicating the relative positions of the receiver and
the argument in the natural order of elements of the receiver's class.
|
BundleDescription |
getBundle()
Returns the BundleDescription that this bundle delta is for.
|
int |
getType()
Returns the type of change which occured.
|
static final int ADDED
getType()
,
Constant Field Valuesstatic final int REMOVED
getType()
,
Constant Field Valuesstatic final int UPDATED
getType()
,
Constant Field Valuesstatic final int RESOLVED
getType()
,
Constant Field Valuesstatic final int UNRESOLVED
getType()
,
Constant Field Valuesstatic final int LINKAGE_CHANGED
getType()
,
Constant Field Valuesstatic final int OPTIONAL_LINKAGE_CHANGED
getType()
,
Constant Field Valuesstatic final int REMOVAL_PENDING
REMOVED
flag set. A bundle will have
this flag set if it has been removed from the state but has other
existing bundles in the state that depend on it.getType()
,
Constant Field Valuesstatic final int REMOVAL_COMPLETE
BundleDescription getBundle()
int getType()
int compareTo(BundleDelta obj)
The natural order of elements is determined by the bundle id of the BundleDescription that this bundle delta is for.
compareTo
in interface Comparable<BundleDelta>
obj
- another BundleDelta an object to compare the receiver toClassCastException
- if the argument can not be converted into something
comparable with the receiver.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.