THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
/** * A Service Using lifecyce callbacks */ @Service class X implements Y { @ServiceDependency void bindOtherService(OtherService other) { // Will be injected before we are started (because it's a required dependency). } @Start void publishing() { // All required dependencies are injected: initialize our component. // Once we return, our Y service will be published // in the OSGi registry. } @Stop void unpublished() { // We are not registered anymore in the OSGi registry. } } |
...