public interface BundleWatcher
Note that a bundle watcher is always notified of when a lifecycle processes
has ended even in cases where the lifecycle process may have failed. For
example, if activating a bundle fails the END_ACTIVATION
flag will
still be sent to the bundle watcher to notify them that the activation
process has ended.
Clients may implement this interface.
Modifier and Type | Field and Description |
---|---|
static int |
END_ACTIVATION
The activation process has ended for a bundle
|
static int |
END_DEACTIVATION
The deactivation process has ended for a bundle
|
static int |
END_INSTALLING
The install process has ended for a bundle
|
static int |
END_UNINSTALLING
The uninstallation process has ended for a bundle
|
static int |
START_ACTIVATION
The activation process is beginning for a bundle
|
static int |
START_DEACTIVATION
The deactivation process is beginning for a bundle
|
static int |
START_INSTALLING
The install process is beginning for a bundle
|
static int |
START_UNINSTALLING
The uninstallation process is beginning for a bundle
|
Modifier and Type | Method and Description |
---|---|
void |
watchBundle(Bundle bundle,
int type)
Receives notification that a lifecycle change is going to start or has
ended.
|
static final int START_INSTALLING
static final int END_INSTALLING
static final int START_ACTIVATION
static final int END_ACTIVATION
static final int START_DEACTIVATION
static final int END_DEACTIVATION
static final int START_UNINSTALLING
static final int END_UNINSTALLING
void watchBundle(Bundle bundle, int type)
bundle
- the bundle for which the lifecycle change is occurring on.type
- the type of lifecycle change which is occurring.START_INSTALLING
,
END_INSTALLING
,
START_ACTIVATION
,
END_ACTIVATION
,
START_DEACTIVATION
,
END_DEACTIVATION
,
START_UNINSTALLING
,
END_UNINSTALLING
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.