Package com.google.gwt.useragent.client
Class UserAgentAsserter
java.lang.Object
com.google.gwt.useragent.client.UserAgentAsserter
- All Implemented Interfaces:
EntryPoint
Helper class, which, during startup, asserts that the specified user.agent
selection property value indeed matches the expected value for this browser /
user agent, thus avoid long hours debugging strange error messages when a
single user agent compile, typically created for testing purposes, ends up
being executed in the wrong browser.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Replacement for UserAgentAsserter to disable it.static class
An error object that indicates that the user agent detected at runtime did not match the user agent that the module expected to find. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The entry point method, called automatically by loading a module that declares an implementing class as an entry point.
-
Constructor Details
-
UserAgentAsserter
public UserAgentAsserter()
-
-
Method Details
-
onModuleLoad
public void onModuleLoad()Description copied from interface:EntryPoint
The entry point method, called automatically by loading a module that declares an implementing class as an entry point.- Specified by:
onModuleLoad
in interfaceEntryPoint
-