|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.shared.GWTBridge com.google.gwt.core.server.ServerGwtBridge
public class ServerGwtBridge
Implements GWT.* methods for the server.
Nested Class Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
ServerGwtBridge()
|
Method Summary | ||
---|---|---|
|
create(java.lang.Class<?> classLiteral)
|
|
static ServerGwtBridge |
getInstance()
Get the singleton ServerGwtBridge instance, creating it if
necessary. |
|
static GwtLocale |
getLocale(ServerGwtBridge.Properties properties)
|
|
java.lang.String |
getProperty(java.lang.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) ). |
|
java.lang.String |
getVersion()
|
|
boolean |
isClient()
|
|
void |
log(java.lang.String message,
java.lang.Throwable e)
|
|
void |
register(java.lang.Class<?> baseClass,
ServerGwtBridge.ClassInstantiator instantiator)
Register an instantiator to be used for any subtypes of a given base class. |
|
void |
setGlobalProperty(java.lang.String property,
java.lang.String value)
Set a property value globally. |
|
void |
setThreadProperty(java.lang.String property,
java.lang.String value)
Set a property value for only the current thread. |
Methods inherited from class com.google.gwt.core.shared.GWTBridge |
---|
getThreadUniqueID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ServerGwtBridge()
Method Detail |
---|
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 <T> T create(java.lang.Class<?> classLiteral)
create
in class GWTBridge
public java.lang.String getProperty(java.lang.String property)
setThreadProperty(String, String)
) over one that is
set globally (see setGlobalProperty(String, String)
).
property
-
public java.lang.String getVersion()
getVersion
in class GWTBridge
public boolean isClient()
isClient
in class GWTBridge
public void log(java.lang.String message, java.lang.Throwable e)
log
in class GWTBridge
public void register(java.lang.Class<?> baseClass, ServerGwtBridge.ClassInstantiator instantiator)
baseClass
- instantiator
- public void setGlobalProperty(java.lang.String property, java.lang.String value)
property
- value
- public void setThreadProperty(java.lang.String property, java.lang.String value)
property
- value
-
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |