Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Seen on felix and equinox
Description
When a simple service starts up, I expect to see the following:
- Constructor called
- @Validate method called
- @PostRegistration called
Instead, what is seen is:
- Constructor called
- @Validate method called
- @Post*Un*registration called
Here is the service implementation:
TestServiceImpl.java
@Component @Provides @Instantiate public class TestServiceImpl implements TestService { @Requires LogService log; public TestServiceImpl() { log.log(LogService.LOG_ERROR, "TestServiceImpl Constructor"); } @Validate public void validate() { log.log(LogService.LOG_ERROR, "Validate"); } @Invalidate public void invalidate() { log.log(LogService.LOG_ERROR, "Invalidate"); } @PostRegistration public void name(ServiceReference ref) { log.log(LogService.LOG_ERROR, "PostRegistration"); } @PostUnregistration public void uname(ServiceReference ref) { log.log(LogService.LOG_ERROR, "PostUnregistration"); } }
Attachments
Attachments
Issue Links
- duplicates
-
FELIX-4636 @PostUnregistration method called instead of @PostRegistration method
- Resolved