|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=CLASS) @Target(value=METHOD) public @interface Stop
Annotates a method which is invoked when the Service is being unregistered from the
OSGi registry.
The method is called when the component's bundle is stopped, or when one of its
required dependency is lost, or when a LifecycleController
is programatically used to
stop a service.
@Component class MyComponent implements MyService { @ServiceDependency private LogService logService; // Required dependency over the log service. @Stop void stop() {} // We are unregistering from the OSGi registry. }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |