com.vaadin.flow.client.
Interface ClientResources
-
All Superinterfaces:
All Known Implementing Classes:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ClientResources extends Serializable
Service which allows to get resources from the client side module.
DefaultClientResources
is used if we are in plain Java environment where resources may be gotten via theClass::getResourceAsStream()
(it doesn't always work out of the box since the resources are in the different bundle).In OSGi Environment a special service is registered which allows to get the resources.
Since:
1.2
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method and Description InputStream
getResource(String path)
Get content of the resource in the client-side module.
-
-
-
Method Detail
-
getResource
InputStream getResource(String path)
Get content of the resource in the client-side module.
Parameters:
path
- the resource pathReturns:
the content of the resource as InputStream or
null
if there is no resource with thepath
-
-