-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[astro] Discovery service with constructor injection #7850
Conversation
Null annotations added. Signed-off-by: Laurent Garnier <[email protected]>
I will update accordingly once the first PR is merged |
final @Reference LocaleProvider localeProvider, final @Reference TranslationProvider i18nProvider) { | ||
super(new HashSet<>(Arrays.asList(new ThingTypeUID(BINDING_ID, "-"))), DISCOVER_TIMEOUT_SECONDS, true); | ||
this.locationProvider = locationProvider; | ||
this.localeProvider = localeProvider; | ||
this.i18nProvider = i18nProvider; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to call activate otherwise background discovery will not start.
final @Reference LocaleProvider localeProvider, final @Reference TranslationProvider i18nProvider) { | |
super(new HashSet<>(Arrays.asList(new ThingTypeUID(BINDING_ID, "-"))), DISCOVER_TIMEOUT_SECONDS, true); | |
this.locationProvider = locationProvider; | |
this.localeProvider = localeProvider; | |
this.i18nProvider = i18nProvider; | |
final @Reference LocaleProvider localeProvider, final @Reference TranslationProvider i18nProvider, | |
Map<String, Object> configProperties) { | |
super(new HashSet<>(Arrays.asList(new ThingTypeUID(BINDING_ID, "-"))), DISCOVER_TIMEOUT_SECONDS, true); | |
this.locationProvider = locationProvider; | |
this.localeProvider = localeProvider; | |
this.i18nProvider = i18nProvider; | |
activate(configProperties); |
Signed-off-by: Laurent Garnier <[email protected]>
Travis tests have failedHey @lolodomo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: CSchlipp <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
* [astro] Discovery service with constructor injection Null annotations added. * Call activate in the constructor Signed-off-by: Laurent Garnier <[email protected]>
Null annotations added.
Signed-off-by: Laurent Garnier [email protected]