class InProcessRequestContext
extends com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
Modifier and Type | Class and Description |
---|---|
(package private) class |
InProcessRequestContext.RequestContextHandler |
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.Object[] |
NO_ARGS |
Modifier | Constructor and Description |
---|---|
protected |
InProcessRequestContext(InProcessRequestFactory factory,
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.Dialect dialect,
java.lang.Class<? extends RequestContext> context) |
Modifier and Type | Method and Description |
---|---|
<T extends RequestContext> |
append(T other)
Joins another RequestContext to this RequestContext.
|
protected <T extends BaseProxy> |
createProxy(java.lang.Class<T> clazz,
com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId<T> id,
boolean useAppendedContexts)
Creates a new proxy with an assigned ID.
|
protected AutoBeanFactory |
getAutoBeanFactory()
Returns an AutoBeanFactory that can produce the types reachable only from this RequestContext.
|
addInvocation, create, edit, editProxy, fail, find, fire, fire, getBeanForPayload, getRequestFactory, getSerializedProxyId, isChanged, isEntityType, isLocked, isValueType, setFireDisabled, violation
protected InProcessRequestContext(InProcessRequestFactory factory, com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.Dialect dialect, java.lang.Class<? extends RequestContext> context)
public <T extends RequestContext> T append(T other)
RequestContext
SomeContext ctx = myFactory.someContext(); // Perform operations on ctx OtherContext other = ctx.append(myFactory.otherContext()); // Perform operations on both other and ctx ctx.fire() // or other.fire() are equivalent
append
in interface RequestContext
append
in class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
other
- a freshly-constructed RequestContext whose state should be
bound to this RequestContextother
protected <T extends BaseProxy> AutoBean<T> createProxy(java.lang.Class<T> clazz, com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId<T> id, boolean useAppendedContexts)
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
createProxy
in class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
clazz
- The proxy typeid
- The id to be assigned to the new proxyuseAppendedContexts
- if true
use the AutoBeanFactory types associated with any
contexts that have been passed into AbstractRequestContext.append(RequestContext)
. If false
,
this method will only create proxy types reachable from the implemented RequestContext
interface.protected AutoBeanFactory getAutoBeanFactory()
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
getAutoBeanFactory
in class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext