public class FakeRequestContext extends java.lang.Object implements RequestContext
Constructor and Description |
---|
FakeRequestContext() |
Modifier and Type | Method and Description |
---|---|
<T extends RequestContext> |
append(T other)
Always returns
other . |
<T extends BaseProxy> |
create(java.lang.Class<T> clazz)
Returns
null . |
<T extends BaseProxy> |
edit(T object)
Always returns
object . |
<P extends EntityProxy> |
find(EntityProxyId<P> proxyId)
Returns
null . |
void |
fire()
No-op.
|
void |
fire(Receiver<java.lang.Void> receiver)
No-op.
|
RequestFactory |
getRequestFactory()
Returns
null . |
boolean |
isChanged()
Always returns
false . |
public <T extends RequestContext> T append(T other)
other
.append
in interface RequestContext
other
- a freshly-constructed RequestContext whose state should be
bound to this RequestContextother
public <T extends BaseProxy> T create(java.lang.Class<T> clazz)
null
.create
in interface RequestContext
clazz
- a Class object of type TBaseProxy
instance of type Tpublic <T extends BaseProxy> T edit(T object)
object
.edit
in interface RequestContext
object
- an instance of type TEntityProxy
or ValueProxy
instance of type Tpublic <P extends EntityProxy> Request<P> find(EntityProxyId<P> proxyId)
null
.find
in interface RequestContext
proxyId
- an EntityProxyId
instance of type PRequest
objectpublic void fire()
fire
in interface RequestContext
public void fire(Receiver<java.lang.Void> receiver)
fire
in interface RequestContext
receiver
- a Receiver
instancepublic RequestFactory getRequestFactory()
null
.getRequestFactory
in interface RequestContext
public boolean isChanged()
false
.isChanged
in interface RequestContext
true
if any changes have been made