THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- If the bundle is stopped or if some required dependencies are unavailable, Invoke the stop method (annotated wit @Stop), and unregister eventual OSGi services (if the components provides some services). Any or if the component is deactivated by a factorySet, then:
- Unbind eventual optional dependencies (defined on callback methods). Notice that any optional dependency unavailability does not trigger the component deactivation
- : the removed callbacks are just invoked, if declared in the annotation.
- Invoke the stop method (annotated wit @Stop), and unregister eventual OSGi services (if the components provides some services).
- invoke destroy method (annotated with @Destroy).
- invoke removed dependency callbacks, if any.
Example
The following example show a basic service, which uses the @Start, @Stop, annotation:
...