Class InProcessRequestContext
java.lang.Object
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
com.google.web.bindery.requestfactory.vm.InProcessRequestContext
- All Implemented Interfaces:
com.google.web.bindery.requestfactory.shared.impl.EntityCodex.EntitySource
,RequestContext
class InProcessRequestContext
extends com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
An in-process implementation of RequestContext.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
Nested classes/interfaces inherited from class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.Dialect, com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.State
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
InProcessRequestContext
(InProcessRequestFactory factory, com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.Dialect dialect, Class<? extends RequestContext> context) -
Method Summary
Modifier and TypeMethodDescription<T extends RequestContext>
Tappend
(T other) Joins another RequestContext to this RequestContext.createProxy
(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
Returns an AutoBeanFactory that can produce the types reachable only from this RequestContext.Methods inherited from class com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
addInvocation, create, edit, editProxy, fail, find, fire, fire, getBeanForPayload, getRequestFactory, getSerializedProxyId, isChanged, isEntityType, isLocked, isValueType, setFireDisabled, violation
-
Field Details
-
NO_ARGS
-
-
Constructor Details
-
Method Details
-
append
Description copied from interface:RequestContext
Joins another RequestContext to this 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
- Specified by:
append
in interfaceRequestContext
- Overrides:
append
in classcom.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
- Parameters:
other
- a freshly-constructed RequestContext whose state should be bound to this RequestContext- Returns:
other
-
getAutoBeanFactory
Description copied from class:com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
Returns an AutoBeanFactory that can produce the types reachable only from this RequestContext.- Specified by:
getAutoBeanFactory
in classcom.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
-