Starts the given capsule and adds it to the current capsule scope.
Starts the given capsule and adds it to the current capsule scope.
capsule
Returns the bundle context as long as the bundle is active.
Creates a new capsule scope on top of the active one and executes the given function in it.
Creates a new capsule scope on top of the active one and executes the given function in it. So the function sees the new capsule scope as the current one.
the function which might add capsules to the new scope
the new scope
Defines a handler f
to be executed when the bundle becomes active.
Defines a handler f
to be executed when the bundle becomes active. f
is executed as soon as the bundle
activator's start
method is called. This should be called in the constructor of your activator.
In f
, you have the opportunity to add so called capsules, which have their own start
and stop
methods
(a kind of mini bundles). Their stop
methods will be invoked as soon as the bundle activator's stop
method
is called. So you have the big chance here to encapsulate start and stop logic at one place, making the bundle
activator less error-prone, better readable and easier to write.
Handler
Basic methods
Provides the basis for the Domino DSL by binding the bundle lifecycle to a capsule scope.
domino.capsule