com.gargoylesoftware.htmlunit.javascript.configuration
Class JavaScriptConfiguration

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration
      extended by com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration

public final class JavaScriptConfiguration
extends AbstractJavaScriptConfiguration

A container for all the JavaScript configuration information.

Version:
$Revision: 8960 $
Author:
Mike Bowler, Chris Erskine, Ahmed Ashour, Ronald Brill, Frank Danek

Constructor Summary
protected JavaScriptConfiguration(BrowserVersion browser)
          Constructor is only called from getInstance(BrowserVersion) which is synchronized.
 
Method Summary
protected  Class<? extends SimpleScriptable>[] getClasses()
           
static JavaScriptConfiguration getInstance(BrowserVersion browserVersion)
          Returns the instance that represents the configuration for the specified BrowserVersion.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration
getAll, getClassConfiguration, getDomJavaScriptMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptConfiguration

protected JavaScriptConfiguration(BrowserVersion browser)
Constructor is only called from getInstance(BrowserVersion) which is synchronized.

Parameters:
browser - the browser version to use
Method Detail

getInstance

public static JavaScriptConfiguration getInstance(BrowserVersion browserVersion)
Returns the instance that represents the configuration for the specified BrowserVersion. This method is synchronized to allow multi-threaded access to the JavaScript configuration.

Parameters:
browserVersion - the BrowserVersion
Returns:
the instance for the specified BrowserVersion

getClasses

protected Class<? extends SimpleScriptable>[] getClasses()
Specified by:
getClasses in class AbstractJavaScriptConfiguration
Returns:
the classes configured by this configuration


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.