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, violationprotected 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)
RequestContextSomeContext 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 RequestContextappend in class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContextother - a freshly-constructed RequestContext whose state should be
bound to this RequestContextotherprotected <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.AbstractRequestContextcreateProxy in class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContextclazz - 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.AbstractRequestContextgetAutoBeanFactory in class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext