Package com.google.gwt.core.server
Class ServerGwtBridge
java.lang.Object
com.google.gwt.core.shared.GWTBridge
com.google.gwt.core.server.ServerGwtBridge
Implements GWT.* methods for the server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSomething that knows how to provide an instance of a requested class.static classHelper class that provides some wrappers for looking up and instantiating a class.static interfaceAn interface for accessing property values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tstatic ServerGwtBridgeGet the singletonServerGwtBridgeinstance, creating it if necessary.static GwtLocalegetLocale(ServerGwtBridge.Properties properties) getProperty(String property) Get the value of the named property, preferring a value specific to this thread (seesetThreadProperty(String, String)) over one that is set globally (seesetGlobalProperty(String, String)).booleanisClient()voidvoidregister(Class<?> baseClass, ServerGwtBridge.ClassInstantiator instantiator) Register an instantiator to be used for any subtypes of a given base class.voidsetGlobalProperty(String property, String value) Set a property value globally.voidsetThreadProperty(String property, String value) Set a property value for only the current thread.Methods inherited from class com.google.gwt.core.shared.GWTBridge
getThreadUniqueID
-
Constructor Details
-
ServerGwtBridge
ServerGwtBridge()
-
-
Method Details
-
getInstance
Get the singletonServerGwtBridgeinstance, creating it if necessary. The instance will be registered viaGWT.setBridge(GWTBridge)and will have the default instantiators registered on it.- Returns:
- the singleton
ServerGwtBridgeinstance
-
getLocale
-
create
-
getProperty
Get the value of the named property, preferring a value specific to this thread (seesetThreadProperty(String, String)) over one that is set globally (seesetGlobalProperty(String, String)).- Parameters:
property-- Returns:
- the property's value or null if none
-
getVersion
- Specified by:
getVersionin classGWTBridge
-
isClient
public boolean isClient() -
log
-
register
Register an instantiator to be used for any subtypes of a given base class.- Parameters:
baseClass-instantiator-
-
setGlobalProperty
Set a property value globally. This value will be overridden by any thread-specific property value of the same name.- Parameters:
property-value-
-
setThreadProperty
Set a property value for only the current thread. This value will override any global property value of the same name.- Parameters:
property-value-
-