Class AddWebResourceRule

java.lang.Object
com.foreach.across.modules.web.resource.rules.AddWebResourceRule
All Implemented Interfaces:
WebResourceRule

public class AddWebResourceRule extends Object implements WebResourceRule
A rule which specifies that a ViewElementBuilder must be added to a specific bucket of a WebResourceRegistry. Allows specifying key and order related properties of the resulting WebResourceRegistry.

Unlike directly calling WebResourceRegistry.addResourceToBucket(WebResourceReference, String) using this rule will not replace a previously registered resource with the same key, unless replaceIfPresent(boolean) has explicitly been set to true.

Since:
3.2.0
Author:
Marc Vanbrabant
See Also: