Class JavaScriptConfiguration
java.lang.Object
org.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration
org.htmlunit.javascript.configuration.JavaScriptConfiguration
A container for all the JavaScript configuration information.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Class<? extends HtmlUnitScriptable>[]private static final Map<String, JavaScriptConfiguration> Cache of browser versions and their corresponding JavaScript configurations. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJavaScriptConfiguration(BrowserVersion browser) Constructor is only called fromgetInstance(BrowserVersion)which is synchronized. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends HtmlUnitScriptable>[]static JavaScriptConfigurationgetInstance(BrowserVersion browserVersion) Returns the instance that represents the configuration for the specifiedBrowserVersion.Methods inherited from class org.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration
getAll, getClassConfiguration, getClassConfiguration, getDomJavaScriptMappingFor, isCompatible
-
Field Details
-
CLASSES_
-
CONFIGURATION_MAP_
Cache of browser versions and their corresponding JavaScript configurations.
-
-
Constructor Details
-
JavaScriptConfiguration
Constructor is only called fromgetInstance(BrowserVersion)which is synchronized.- Parameters:
browser- the browser version to use
-
-
Method Details
-
getInstance
Returns the instance that represents the configuration for the specifiedBrowserVersion. This method is synchronized to allow multi-threaded access to the JavaScript configuration.- Parameters:
browserVersion- theBrowserVersion- Returns:
- the instance for the specified
BrowserVersion
-
getClasses
- Specified by:
getClassesin classAbstractJavaScriptConfiguration- Returns:
- the classes configured by this configuration
-