aboutsummaryrefslogtreecommitdiffstats
path: root/shared/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/main/java')
-rw-r--r--shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinTheme.java5
-rw-r--r--shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinWidgetset.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinTheme.java b/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinTheme.java
index 9507dfe6f4..852dd93294 100644
--- a/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinTheme.java
+++ b/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinTheme.java
@@ -20,6 +20,11 @@ package com.vaadin.osgi.resources;
* in the same OSGi bundle as the class implementing this interface, under the
* path "/VAADIN/themes/{themeName}" where {themeName} is what is returned by
* {@link OSGiVaadinTheme#getName()}.
+ * <p>
+ * To publish a theme, an implementation of this interface needs to be
+ * registered as an OSGi service, which makes
+ * <code>VaadinResourceTrackerComponent</code> automatically publish the theme
+ * with the given name.
*
* @author Vaadin Ltd.
*
diff --git a/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinWidgetset.java b/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinWidgetset.java
index 45bf0c4f6a..c594443687 100644
--- a/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinWidgetset.java
+++ b/shared/src/main/java/com/vaadin/osgi/resources/OSGiVaadinWidgetset.java
@@ -20,6 +20,11 @@ package com.vaadin.osgi.resources;
* to be in the same OSGi bundle as the class implementing this interface, under
* the path "/VAADIN/widgetsets/{widgetsetName}" where {widgetsetName} is what
* is returned by {@link OSGiVaadinWidgetset#getName()}.
+ * <p>
+ * To publish a widgetset, an implementation of this interface needs to be
+ * registered as an OSGi service, which makes
+ * <code>VaadinResourceTrackerComponent</code> automatically publish the
+ * widgetset with the given name.
*
* @author Vaadin Ltd.
*