com.vaadin.osgi.resources.

Interface OsgiVaadinResource

  • All Known Subinterfaces:

    OsgiVaadinTheme, OsgiVaadinWidgetset

    public interface OsgiVaadinResource

    Used to declare a Vaadin Resource for use in OSGi. The resource is expected to be in the same OSGi bundle as the class implementing this interface, under the path "/VAADIN/{resourceName}" where {resourceName} is what is returned by getName().

    To publish a resource, an implementation of this interface needs to be registered as an OSGi service, which makes VaadinResourceTrackerComponent automatically publish the resource with the given name.

    Since:

    8.6.0

    • Method Detail

      • getName

        String getName()

        Return the theme name to publish for OSGi.

        Returns:

        theme name, not null