public class ServerGwtBridge extends GWTBridge
Modifier and Type | Class and Description |
---|---|
static interface |
ServerGwtBridge.ClassInstantiator
Something that knows how to provide an instance of a requested class.
|
static class |
ServerGwtBridge.ClassInstantiatorBase
Helper class that provides some wrappers for looking up and instantiating
a class.
|
static interface |
ServerGwtBridge.Properties
An interface for accessing property values.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
create(Class<?> classLiteral) |
static ServerGwtBridge |
getInstance()
Get the singleton
ServerGwtBridge instance, creating it if
necessary. |
static GwtLocale |
getLocale(ServerGwtBridge.Properties properties) |
String |
getProperty(String property)
Get the value of the named property, preferring a value specific to this
thread (see
setThreadProperty(String, String) ) over one that is
set globally (see setGlobalProperty(String, String) ). |
String |
getVersion() |
boolean |
isClient() |
void |
log(String message,
Throwable e) |
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.
|
getThreadUniqueID
public static ServerGwtBridge getInstance()
ServerGwtBridge
instance, creating it if
necessary. The instance will be registered via
GWT.setBridge(GWTBridge)
and will have the default instantiators
registered on it.ServerGwtBridge
instancepublic static GwtLocale getLocale(ServerGwtBridge.Properties properties)
public String getProperty(String property)
setThreadProperty(String, String)
) over one that is
set globally (see setGlobalProperty(String, String)
).property
- public String getVersion()
getVersion
in class GWTBridge
public void register(Class<?> baseClass, ServerGwtBridge.ClassInstantiator instantiator)
baseClass
- instantiator
- public void setGlobalProperty(String property, String value)
property
- value
- Copyright © 2018. All rights reserved.