public class BundleScriptingConfigurationConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JAHIA_MODULE_HAS_VIEWS
OSGi header specifying whether the module provides any views so that it can be skipped by DX when looking for
views.
|
static String |
JAHIA_MODULE_SCRIPTING_VIEWS
OSGi header specifying a comma-separated list of script languages for which this module provides views.
|
static String |
JAHIA_SCRIPTING_EXTENSIONS_PRIORITIES
OSGi header to allow modules providing new scripting languages to control the order of how views are resolved by
DX by controlling the priority of file extensions associated with specific view technologies.
|
public static final String JAHIA_MODULE_HAS_VIEWS
no value for this header specifies that the module doesn't provide any view and will
therefore be skipped when DX scans modules for views. Any other value is ignored and will result in the module
being scanned for views. This header is useful to prevent any form of view-related inspection of your module
in order to speed-up deployment and/or DX startup.public static final String JAHIA_MODULE_SCRIPTING_VIEWS
The following example specifies that the bundle provides views for the Thymeleaf and PHP scripting languages:
<Jahia-Module-Scripting-Views>thymeleaf,php</Jahia-Module-Scripting-Views>
public static final String JAHIA_SCRIPTING_EXTENSIONS_PRIORITIES
Its value should consist of a space-separated list of extension=priority pairs specifying the new
ordering of extensions.
The following example specifies that the foo extension will have a priority of 1000 while the bar extension will have a priority of 250, thus making it of higher priority.
<Jahia-Scripting-Extensions-Priorities>foo=1000 bar=250</Jahia-Scripting-Extensions-Priorities>
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.