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.AbstractRequestContextAn in-process implementation of RequestContext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classInProcessRequestContext.RequestContextHandler
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.Object[]NO_ARGS
-
Constructor Summary
Constructors Modifier Constructor Description protectedInProcessRequestContext(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 AutoBeanFactorygetAutoBeanFactory()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:RequestContextJoins 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:
appendin interfaceRequestContext- Overrides:
appendin 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.AbstractRequestContextCreates a new proxy with an assigned ID.- Overrides:
createProxyin classcom.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext- Parameters:
clazz- The proxy typeid- The id to be assigned to the new proxyuseAppendedContexts- iftrueuse 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.AbstractRequestContextReturns an AutoBeanFactory that can produce the types reachable only from this RequestContext.- Specified by:
getAutoBeanFactoryin classcom.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
-
-