com.vaadin.flow.di.

Class LookupInitializer.ResourceProviderImpl

    • Constructor Detail

      • ResourceProviderImpl

        public ResourceProviderImpl()

        Creates a new instance.

    • Method Detail

      • getApplicationResources

        public List<URL> getApplicationResources(VaadinContext context,
                                                 String path)
                                          throws IOException

        Description copied from interface: ResourceProvider

        Gets all the web application resources identified by the path using the provided context.

        Specified by:

        getApplicationResources in interface ResourceProvider

        Parameters:

        context - a context object

        path - the resource path

        Returns:

        a list of URLs of the resources or an empty list if resources are not found

        Throws:

        IOException - if there is an I/O error

      • getApplicationResource

        public URL getApplicationResource(VaadinContext context,
                                          String path)

        Description copied from interface: ResourceProvider

        Gets the web application resource identified by the path using the provided context.

        Specified by:

        getApplicationResource in interface ResourceProvider

        Parameters:

        context - a context object

        path - the resource path

        Returns:

        an URL of the resource, may be null

      • getClientResource

        public URL getClientResource(String path)

        Description copied from interface: ResourceProvider

        Gets "flow-client" bundle resource identified by the path.

        Specified by:

        getClientResource in interface ResourceProvider

        Parameters:

        path - the resource path

        Returns:

        an URL of the resource, may be null