Interface WebResourceRule
- All Known Implementing Classes:
AddPackageResourceRule
,AddWebResourceRule
,RemoveWebResourceRule
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An abstract class that can be used to single add(com.foreach.across.modules.web.ui.ViewElementBuilder)
a CssWebResourceBuilder
, JavascriptWebResourceBuilder
or ViewElementBuilderSupport
.
A WebResourcePackage
can be added with addPackage(String)
- Since:
- 3.2.0
- Author:
- Marc Vanbrabant
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddWebResourceRule
add
(@NonNull ViewElementBuilder viewElementBuilder) A factory method which can be used to declare aAddWebResourceRule
and add a singleViewElementBuilder
to the registrystatic AddPackageResourceRule
addPackage
(@NonNull String packageName) A factory method which can be used to declare aAddPackageResourceRule
and add a package of web resources to the registryvoid
applyTo
(@NonNull WebResourceRegistry webResourceRegistry) static RemoveWebResourceRule
remove()
A factory method why can be used to remove a web resource from the registry
-
Method Details
-
applyTo
-
add
A factory method which can be used to declare aAddWebResourceRule
and add a singleViewElementBuilder
to the registry -
addPackage
A factory method which can be used to declare aAddPackageResourceRule
and add a package of web resources to the registry- See Also:
-
remove
A factory method why can be used to remove a web resource from the registry- See Also:
-