Package org.apache.sling.api.scripting
Class SlingScriptConstants
java.lang.Object
org.apache.sling.api.scripting.SlingScriptConstants
Some constants for the scripting.
This class is not intended to be extended or instantiated because it just provides constants not intended to be overwritten.
- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the script context attribute holding theResourceResolverwhich has been used to resolve the script.static final StringThe event property listing the script engine factory extensions.static final StringThe event property listing the script engine factory language.static final StringThe event property listing the script engine factory language version.static final StringThe event property listing the script engine factory mime types.static final StringThe event property listing the script engine factory name.static final StringThe event property listing the script engine factory name.static final intThe name of the script scope holding theATTR_SCRIPT_RESOURCE_RESOLVER.static final StringThe topic for the OSGi event which is sent when a script engine factory has been added.static final StringThe topic for the OSGi event which is sent when a script engine factory has been removed.static final StringThe topic for the OSGi event which is sent when a script engine factory has been updated. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ATTR_SCRIPT_RESOURCE_RESOLVER
The name of the script context attribute holding theResourceResolverwhich has been used to resolve the script. This resource resolver can be used by the script engines to further locate scripts (for includes etc.). The value is set in theSLING_SCOPEof the script context.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
SLING_SCOPE
public static final int SLING_SCOPEThe name of the script scope holding theATTR_SCRIPT_RESOURCE_RESOLVER.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
TOPIC_SCRIPT_ENGINE_FACTORY_ADDED
The topic for the OSGi event which is sent when a script engine factory has been added. The event contains at least thePROPERTY_SCRIPT_ENGINE_FACTORY_NAME,PROPERTY_SCRIPT_ENGINE_FACTORY_VERSION,PROPERTY_SCRIPT_ENGINE_FACTORY_EXTENSIONS,PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_NAME,PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_VERSION, andPROPERTY_SCRIPT_ENGINE_FACTORY_MIME_TYPESproperties.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
TOPIC_SCRIPT_ENGINE_FACTORY_REMOVED
The topic for the OSGi event which is sent when a script engine factory has been removed. The event contains at least thePROPERTY_SCRIPT_ENGINE_FACTORY_NAME,PROPERTY_SCRIPT_ENGINE_FACTORY_VERSION,PROPERTY_SCRIPT_ENGINE_FACTORY_EXTENSIONS,PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_NAME,PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_VERSION, andPROPERTY_SCRIPT_ENGINE_FACTORY_MIME_TYPESproperties.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
TOPIC_SCRIPT_ENGINE_FACTORY_UPDATED
The topic for the OSGi event which is sent when a script engine factory has been updated. The event contains at least thePROPERTY_SCRIPT_ENGINE_FACTORY_NAME,PROPERTY_SCRIPT_ENGINE_FACTORY_VERSION,PROPERTY_SCRIPT_ENGINE_FACTORY_EXTENSIONS,PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_NAME,PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_VERSION, andPROPERTY_SCRIPT_ENGINE_FACTORY_MIME_TYPESproperties.- Since:
- 2.5.0 (Sling API Bundle 2.22.0)
- See Also:
-
PROPERTY_SCRIPT_ENGINE_FACTORY_NAME
The event property listing the script engine factory name. The value is a string.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
PROPERTY_SCRIPT_ENGINE_FACTORY_VERSION
The event property listing the script engine factory name. The value is a string.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
PROPERTY_SCRIPT_ENGINE_FACTORY_EXTENSIONS
The event property listing the script engine factory extensions. The value is a string array.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_NAME
The event property listing the script engine factory language. The value is a string.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_VERSION
The event property listing the script engine factory language version. The value is a string.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
PROPERTY_SCRIPT_ENGINE_FACTORY_MIME_TYPES
The event property listing the script engine factory mime types. The value is a string array.- Since:
- 2.0.6 (Sling API Bundle 2.0.6)
- See Also:
-
-
Constructor Details
-
SlingScriptConstants
public SlingScriptConstants()
-