Package | Description |
---|---|
com.google.web.bindery.requestfactory.server |
Server-side classes for mediating between the client-side and the persistent
datastore.
|
com.google.web.bindery.requestfactory.shared |
Shared classes used on both the client and the server side for transmitting
data between the server and the client in JSON format.
|
com.google.web.bindery.requestfactory.shared.impl | |
com.google.web.bindery.requestfactory.shared.testing |
Modifier and Type | Method and Description |
---|---|
Class<? extends BaseProxy> |
ServiceLayerDecorator.resolveClass(String typeToken) |
abstract Class<? extends BaseProxy> |
ServiceLayer.resolveClass(String typeToken)
Given a type token previously returned from
ServiceLayer.resolveTypeToken(Class) , return the Class literal associated with
the token. |
Modifier and Type | Method and Description |
---|---|
String |
ServiceLayerDecorator.resolveTypeToken(Class<? extends BaseProxy> proxyType) |
abstract String |
ServiceLayer.resolveTypeToken(Class<? extends BaseProxy> proxyType)
Return a string used to represent the given type in the wire protocol.
|
Modifier and Type | Interface and Description |
---|---|
interface |
InstanceRequest<P extends BaseProxy,T>
Used to call instance methods.
|
Modifier and Type | Interface and Description |
---|---|
interface |
EntityProxy
A proxy for a server-side domain object.
|
interface |
ValueProxy
An analog to EntityProxy for domain types that do not have an identity
concept.
|
Modifier and Type | Method and Description |
---|---|
<T extends BaseProxy> |
RequestContext.create(Class<T> clazz)
Returns a new mutable proxy that this request can carry to the server,
perhaps to be persisted.
|
<T extends BaseProxy> |
ProxySerializer.deserialize(Class<T> proxyType,
String key)
Recreate a proxy instance that was previously passed to
ProxySerializer.serialize(BaseProxy) . |
<T extends BaseProxy> |
RequestContext.edit(T object)
Returns a mutable version of the proxy, whose mutations will accumulate in
this context.
|
Modifier and Type | Method and Description |
---|---|
BaseProxy |
Violation.getInvalidProxy()
Deprecated.
If the ConstraintViolation occurred while validating a object, this method
will return a BaseProxy that contains the invalid values.
|
BaseProxy |
Violation.getOriginalProxy()
Deprecated.
If the ConstraintViolation occurred while validating a value object that
originated from the server, this method will return a BaseProxy that
contains the original values.
|
Modifier and Type | Method and Description |
---|---|
String |
ProxySerializer.serialize(BaseProxy proxy)
Store a proxy into the backing store.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRequest<P extends BaseProxy,T>
Abstract implementation of
Request . |
class |
SimpleProxyId<P extends BaseProxy>
The base implementation of id objects in the RequestFactory system.
|
Modifier and Type | Field and Description |
---|---|
Map<SimpleProxyId<?>,AutoBean<? extends BaseProxy>> |
AbstractRequestContext.State.editedProxies
A map of all EntityProxies that the RequestContext has interacted with.
|
Modifier and Type | Method and Description |
---|---|
<P extends BaseProxy> |
IdFactory.allocateId(Class<P> clazz)
Allocates an ephemeral proxy id.
|
<P extends BaseProxy> |
IdFactory.allocateSyntheticId(Class<P> clazz,
int syntheticId)
Allocates a synthetic proxy id.
|
<T extends BaseProxy> |
AbstractRequestContext.create(Class<T> clazz)
Create a new object, with an ephemeral id.
|
protected <T extends BaseProxy> |
AbstractRequestContext.createProxy(Class<T> clazz,
SimpleProxyId<T> id,
boolean useAppendedContexts)
Creates a new proxy with an assigned ID.
|
<T extends BaseProxy> |
AbstractRequestContext.edit(T object) |
<T extends BaseProxy> |
AbstractRequestContext.editProxy(T object)
Take ownership of a proxy instance and make it editable.
|
<P extends BaseProxy> |
IdFactory.getBaseProxyId(String historyToken) |
<Q extends BaseProxy> |
EntityCodex.EntitySource.getBeanForPayload(Splittable serializedIdMessage)
Expects an encoded
IdMessage . |
<Q extends BaseProxy> |
AbstractRequestContext.getBeanForPayload(Splittable serializedProxyId)
EntityCodex support.
|
<P extends BaseProxy> |
IdFactory.getId(Class<P> clazz,
String serverId,
int clientId)
Create or retrieve a SimpleProxyId.
|
<P extends BaseProxy> |
IdFactory.getId(String typeToken,
String serverId)
Create or retrieve a SimpleProxyId.
|
<P extends BaseProxy> |
IdFactory.getId(String typeToken,
String serverId,
int clientId)
Create or retrieve a SimpleEntityProxyId.
|
protected abstract <P extends BaseProxy> |
IdFactory.getTypeFromToken(String typeToken) |
static <T extends BaseProxy> |
BaseProxyCategory.stableId(AutoBean<? extends T> bean) |
Modifier and Type | Method and Description |
---|---|
<P extends EntityProxy> |
IdFactory.asEntityProxy(Class<? extends BaseProxy> clazz)
A utility function to handle generic type conversion.
|
<P extends ValueProxy> |
IdFactory.asValueProxy(Class<? extends BaseProxy> clazz)
A utility function to handle generic type conversion.
|
protected abstract String |
IdFactory.getTypeToken(Class<? extends BaseProxy> clazz) |
Modifier and Type | Method and Description |
---|---|
<T extends BaseProxy> |
FakeRequestContext.create(Class<T> clazz)
Returns
null . |
<T extends BaseProxy> |
FakeRequestContext.edit(T object)
Always returns
object . |
Copyright © 2016. All rights reserved.