Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Provides something like:
@Component
@Provides
public class MyImpl implements Service {
@ServiceController
private boolean controller;
}
To provide a way to control the service exposition, a boolean has to be intercepted to reflect the changes on the provided service.
If the boolean is set to false, the service is unpublished, if it is set to true the service is published.
The controller also accepts an initial value to avoid publishing the service at startup.