aboutsummaryrefslogtreecommitdiffstats
path: root/themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java
diff options
context:
space:
mode:
Diffstat (limited to 'themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java')
-rw-r--r--themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java29
1 files changed, 6 insertions, 23 deletions
diff --git a/themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java b/themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java
index 4161c31e9e..29e7394e9c 100644
--- a/themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java
+++ b/themes/src/main/java/com/vaadin/osgi/themes/ValoThemeContribution.java
@@ -15,31 +15,14 @@
*/
package com.vaadin.osgi.themes;
-import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
-import org.osgi.service.component.annotations.Reference;
-import org.osgi.service.http.HttpService;
-import com.vaadin.osgi.resources.OsgiVaadinResources;
-import com.vaadin.osgi.resources.VaadinResourceService;
+import com.vaadin.osgi.resources.OsgiVaadinTheme;
-@Component(immediate = true)
-public class ValoThemeContribution {
-
- private HttpService httpService;
-
- @Activate
- void startup() throws Exception {
- VaadinResourceService service = OsgiVaadinResources.getService();
- service.publishTheme("valo", httpService);
- }
-
- @Reference
- void setHttpService(HttpService httpService) {
- this.httpService = httpService;
- }
-
- void unsetHttpService(HttpService httpService) {
- this.httpService = null;
+@Component
+public class ValoThemeContribution implements OsgiVaadinTheme {
+ @Override
+ public String getName() {
+ return "valo";
}
}