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
Nested Classes Modifier and Type Class Description (package private) class
InProcessRequestContext.RequestContextHandler
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.Object[]
NO_ARGS
-
Constructor Summary
Constructors Modifier Constructor Description protected
InProcessRequestContext(InProcessRequestFactory factory, com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.Dialect dialect, java.lang.Class<? extends RequestContext> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends RequestContext>
Tappend(T other)
Joins another RequestContext to this RequestContext.protected <T extends BaseProxy>
AutoBean<T>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.-
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
-
-
-
-
Constructor Detail
-
InProcessRequestContext
protected InProcessRequestContext(InProcessRequestFactory factory, com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.Dialect dialect, java.lang.Class<? extends RequestContext> context)
-
-
Method Detail
-
append
public <T extends RequestContext> T append(T other)
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
-
createProxy
protected <T extends BaseProxy> AutoBean<T> createProxy(java.lang.Class<T> clazz, com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId<T> id, boolean useAppendedContexts)
Description copied from class:com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
Creates a new proxy with an assigned ID.- Overrides:
createProxy
in classcom.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
- Parameters:
clazz
- The proxy typeid
- The id to be assigned to the new proxyuseAppendedContexts
- iftrue
use the AutoBeanFactory types associated with any contexts that have been passed intoAbstractRequestContext.append(RequestContext)
. Iffalse
, this method will only create proxy types reachable from the implemented RequestContext interface.
-
getAutoBeanFactory
protected AutoBeanFactory 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
-
-