Interface WebResourceAssemblerBuilder
public interface WebResourceAssemblerBuilder
Builder for constructing WebResourceAssembler
- Since:
- v3.0
-
Method Summary
Modifier and TypeMethodDescriptionautoIncludeFrontendRuntime(boolean include) Occasionally a WRM feature requires supporting frontend code to work, such as when the interactive or lazy-load resource phases are used.build()Constructs a WebResourceAssemblerincludeSuperbatchResources(boolean include) Deprecated.since 5.5.0.includeSyncbatchResources(boolean include) The sync batch is implicitly included in every request.
-
Method Details
-
includeSuperbatchResources
Deprecated.since 5.5.0. UseRequiredResources.excludeSuperbatch()instead.In addition to any resources explicitly added to the WebResourceAssembler, always implicitly include resources from the superbatch. When disabled, superbatch resources are not implicitly included, but may be individually (and explicitly) included by requiring them with the WebResourceAssembler. -
includeSyncbatchResources
The sync batch is implicitly included in every request. When disabled, resources in the sync batch will not be served unless they are explicitly required with the WebResourceAssembler.- Parameters:
include- whether to serve the sync batch contents or not.- Since:
- 5.5.0
-
autoIncludeFrontendRuntime
Occasionally a WRM feature requires supporting frontend code to work, such as when the interactive or lazy-load resource phases are used. When enabled (the default value), when such features are used, relevant frontend code will be added to the list of required resources and contexts. When disabled, these resources will not be served unless they are explicitly required with the WebResourceAssembler.- Parameters:
include- whether to automatically include frontend runtime modules or not.- Since:
- 5.5.0
-
build
WebResourceAssembler build()Constructs a WebResourceAssembler- Returns:
- a WebResourceAssembler
-