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 AddWebResourceRuleadd(@NonNull ViewElementBuilder viewElementBuilder) A factory method which can be used to declare aAddWebResourceRuleand add a singleViewElementBuilderto the registrystatic AddPackageResourceRuleaddPackage(@NonNull String packageName) A factory method which can be used to declare aAddPackageResourceRuleand add a package of web resources to the registryvoidapplyTo(@NonNull WebResourceRegistry webResourceRegistry) static RemoveWebResourceRuleremove()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 aAddWebResourceRuleand add a singleViewElementBuilderto the registry -
addPackage
A factory method which can be used to declare aAddPackageResourceRuleand 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:
-