Class OSGiResourceProvider

  • All Implemented Interfaces:
    com.vaadin.flow.di.ResourceProvider

    public class OSGiResourceProvider
    extends Object
    implements com.vaadin.flow.di.ResourceProvider
    OSGi capable implementation of ResourceProvider. ServiceComponentRuntime activates this Service because of @Component
    Since:
    Author:
    Vaadin Ltd
    • Constructor Detail

      • OSGiResourceProvider

        public OSGiResourceProvider()
    • Method Detail

      • getApplicationResource

        public URL getApplicationResource​(String path)
        Specified by:
        getApplicationResource in interface com.vaadin.flow.di.ResourceProvider
      • getApplicationResources

        public List<URL> getApplicationResources​(String path)
                                          throws IOException
        Specified by:
        getApplicationResources in interface com.vaadin.flow.di.ResourceProvider
        Throws:
        IOException
      • getClientResource

        public URL getClientResource​(String path)
        Specified by:
        getClientResource in interface com.vaadin.flow.di.ResourceProvider
      • getClientResourceAsStream

        public InputStream getClientResourceAsStream​(String path)
                                              throws IOException
        Specified by:
        getClientResourceAsStream in interface com.vaadin.flow.di.ResourceProvider
        Throws:
        IOException