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
Modifier and TypeClassDescriptionstatic interface
Something that knows how to provide an instance of a requested class.static class
Helper class that provides some wrappers for looking up and instantiating a class.static interface
An interface for accessing property values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
static ServerGwtBridge
Get the singletonServerGwtBridge
instance, creating it if necessary.static GwtLocale
getLocale
(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)
).boolean
isClient()
void
void
register
(Class<?> baseClass, ServerGwtBridge.ClassInstantiator instantiator) Register an instantiator to be used for any subtypes of a given base class.void
setGlobalProperty
(String property, String value) Set a property value globally.void
setThreadProperty
(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 singletonServerGwtBridge
instance, creating it if necessary. The instance will be registered viaGWT.setBridge(GWTBridge)
and will have the default instantiators registered on it.- Returns:
- the singleton
ServerGwtBridge
instance
-
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:
getVersion
in 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
-
-