This annotation can be used to be notified when a component is registered. At this point, the
component has been registered into the OSGI registry (if it provides some services).
When a service is registered, the ServiceRegistration used to register the service is
also passed to the method (if it takes a ServiceRegistration as parameter).
Usage Examples
@Component
class X implements Z {
@Start
void start() {
// Our Z Service is about to be registered into the OSGi registry.
}
@Registered
void registered(ServiceRegistration sr) {
// At this point, our service has been registered into the registry.
}
}