Package | Description |
---|---|
com.google.web.bindery.autobean.gwt.client.impl | |
com.google.web.bindery.autobean.shared |
The AutoBean framework provides automatically-generated implementations of
bean-like interfaces and a low-level serialization mechanism for those
interfaces.
|
com.google.web.bindery.autobean.shared.impl | |
com.google.web.bindery.autobean.vm |
Contains JVM-compatible implementations of the AutoBean framework.
|
com.google.web.bindery.autobean.vm.impl | |
com.google.web.bindery.requestfactory.shared.impl | |
com.google.web.bindery.requestfactory.shared.messages |
Contains classes that define the RequestFactory wire format.
|
Modifier and Type | Method and Description |
---|---|
<T> AutoBean<T> |
AbstractAutoBeanFactory.create(Class<T> clazz) |
<T> AutoBean<T> |
JsniCreatorMap.create(Class<T> clazz,
AbstractAutoBeanFactory factory) |
<T> AutoBean<T> |
JsniCreatorMap.create(Class<T> clazz,
AbstractAutoBeanFactory factory,
Object delegate) |
<T,U extends T> |
AbstractAutoBeanFactory.create(Class<T> clazz,
U delegate) |
Modifier and Type | Method and Description |
---|---|
AutoBean<T> |
AutoBean.clone(boolean deep)
Deprecated.
with no replacement
|
<T> AutoBean<T> |
AutoBeanFactory.create(Class<T> clazz)
Allows dynamic creation of AutoBean instances based on declared
parameterizations.
|
<T,U extends T> |
AutoBeanFactory.create(Class<T> clazz,
U delegate)
Allows dynamic creation of wrapped AutoBean instances based on declared
parameterizations.
|
static <T> AutoBean<T> |
AutoBeanCodex.decode(AutoBeanFactory factory,
Class<T> clazz,
Splittable data)
Decode an AutoBeanCodex payload.
|
static <T> AutoBean<T> |
AutoBeanCodex.decode(AutoBeanFactory factory,
Class<T> clazz,
String payload)
Decode an AutoBeanCodex payload.
|
static <T,U extends T> |
AutoBeanUtils.getAutoBean(U delegate)
Return the single AutoBean wrapper that is observing the delegate object or
null if the parameter is null or not wrapped by an AutoBean. |
Modifier and Type | Method and Description |
---|---|
static void |
AutoBeanCodex.decodeInto(Splittable data,
AutoBean<?> bean)
Copy data from a
Splittable into an AutoBean. |
static boolean |
AutoBeanUtils.deepEquals(AutoBean<?> a,
AutoBean<?> b)
Compare two graphs of AutoBeans based on values.
|
static boolean |
AutoBeanUtils.deepEquals(AutoBean<?> a,
AutoBean<?> b)
Compare two graphs of AutoBeans based on values.
|
static Map<String,Object> |
AutoBeanUtils.diff(AutoBean<?> a,
AutoBean<?> b)
Returns a map of properties that differ (via
Object.equals(Object) )
between two AutoBeans. |
static Map<String,Object> |
AutoBeanUtils.diff(AutoBean<?> a,
AutoBean<?> b)
Returns a map of properties that differ (via
Object.equals(Object) )
between two AutoBeans. |
static Splittable |
AutoBeanCodex.encode(AutoBean<?> bean)
Encodes an AutoBean.
|
void |
AutoBeanVisitor.endVisit(AutoBean<?> bean,
AutoBeanVisitor.Context ctx)
Called after visiting an
AutoBean . |
void |
AutoBeanVisitor.endVisitCollectionProperty(String propertyName,
AutoBean<Collection<?>> value,
AutoBeanVisitor.CollectionPropertyContext ctx)
Called after visiting a reference property.
|
void |
AutoBeanVisitor.endVisitMapProperty(String propertyName,
AutoBean<Map<?,?>> value,
AutoBeanVisitor.MapPropertyContext ctx)
Called after visiting a reference property.
|
void |
AutoBeanVisitor.endVisitReferenceProperty(String propertyName,
AutoBean<?> value,
AutoBeanVisitor.PropertyContext ctx)
Called after visiting a reference property.
|
static Map<String,Object> |
AutoBeanUtils.getAllProperties(AutoBean<?> bean)
Returns a map that is a copy of the properties contained in an AutoBean.
|
boolean |
AutoBeanVisitor.visit(AutoBean<?> bean,
AutoBeanVisitor.Context ctx)
Called when visiting an
AutoBean . |
boolean |
AutoBeanVisitor.visitCollectionProperty(String propertyName,
AutoBean<Collection<?>> value,
AutoBeanVisitor.CollectionPropertyContext ctx)
Called every time, but
AutoBeanVisitor.visit(AutoBean, Context) will be called for
the value only the first time it is encountered. |
boolean |
AutoBeanVisitor.visitMapProperty(String propertyName,
AutoBean<Map<?,?>> value,
AutoBeanVisitor.MapPropertyContext ctx)
Called every time, but
AutoBeanVisitor.visit(AutoBean, Context) will be called for
the value only the first time it is encountered. |
boolean |
AutoBeanVisitor.visitReferenceProperty(String propertyName,
AutoBean<?> value,
AutoBeanVisitor.PropertyContext ctx)
Called every time, but
AutoBeanVisitor.visit(AutoBean, Context) will be called for
the value only the first time it is encountered. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAutoBean<T>
Basic implementation.
|
Modifier and Type | Method and Description |
---|---|
AutoBean<T> |
AbstractAutoBean.clone(boolean deep) |
static <T> AutoBean<T> |
AutoBeanCodexImpl.doDecode(AutoBeanCodexImpl.EncodeState state,
Class<T> clazz,
Splittable data) |
Modifier and Type | Method and Description |
---|---|
static AutoBeanCodexImpl.Coder |
AutoBeanCodexImpl.doCoderFor(AutoBean<?> bean,
String propertyName) |
static void |
AutoBeanCodexImpl.doDecodeInto(AutoBeanCodexImpl.EncodeState state,
Splittable data,
AutoBean<?> bean) |
static void |
AutoBeanCodexImpl.doEncode(AutoBeanCodexImpl.EncodeState state,
AutoBean<?> bean) |
Modifier and Type | Method and Description |
---|---|
static <T> AutoBean<T> |
AutoBeanFactorySource.createBean(Class<T> clazz,
Configuration configuration)
Create an instance of an AutoBean directly.
|
Modifier and Type | Class and Description |
---|---|
class |
ProxyAutoBean<T>
An implementation of an AutoBean that uses reflection.
|
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.
|
Map<SimpleProxyId<?>,AutoBean<?>> |
AbstractRequestContext.State.returnedProxies
A map that contains the canonical instance of an entity to return in the return graph, since
this is built from scratch.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends BaseProxy> |
AbstractRequestContext.createProxy(Class<T> clazz,
SimpleProxyId<T> id,
boolean useAppendedContexts)
Creates a new proxy with an assigned ID.
|
<Q extends BaseProxy> |
EntityCodex.EntitySource.getBeanForPayload(Splittable serializedIdMessage)
Expects an encoded
IdMessage . |
<Q extends BaseProxy> |
AbstractRequestContext.getBeanForPayload(Splittable serializedProxyId)
EntityCodex support.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
BaseProxyCategory.__intercept(AutoBean<?> bean,
T returnValue)
Sniff all return values and ensure that if the current bean is a mutable
EntityProxy, that its return values are mutable.
|
static boolean |
EntityProxyCategory.equals(AutoBean<? extends EntityProxy> bean,
Object o)
EntityProxies are equal if they are from the same RequestContext and their
stableIds are equal.
|
static boolean |
ValueProxyCategory.equals(AutoBean<? extends ValueProxy> bean,
Object o)
ValueProxies are equal if they are from the same RequestContext and all of
their properties are equal.
|
static int |
EntityProxyCategory.hashCode(AutoBean<? extends EntityProxy> bean)
Hashcode is always that of the stableId, since it's stable across time.
|
static int |
ValueProxyCategory.hashCode(AutoBean<? extends ValueProxy> bean)
Hashcode depends on property values.
|
static AbstractRequestContext |
BaseProxyCategory.requestContext(AutoBean<?> bean) |
static <T extends BaseProxy> |
BaseProxyCategory.stableId(AutoBean<? extends T> bean) |
static <T extends EntityProxy> |
EntityProxyCategory.stableId(AutoBean<? extends T> bean)
Effectively overrides
BaseProxyCategory.stableId(AutoBean) to
return a narrower bound. |
Modifier and Type | Method and Description |
---|---|
AutoBean<ServerFailureMessage> |
MessageFactory.failure() |
AutoBean<IdMessage> |
MessageFactory.id() |
AutoBean<InvocationMessage> |
MessageFactory.invocation() |
AutoBean<JsonRpcRequest> |
MessageFactory.jsonRpcRequest() |
AutoBean<OperationMessage> |
MessageFactory.operation() |
AutoBean<RequestMessage> |
MessageFactory.request() |
AutoBean<ResponseMessage> |
MessageFactory.response() |
AutoBean<ViolationMessage> |
MessageFactory.violation() |
Copyright © 2016. All rights reserved.