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 RequestContextother - a freshly-constructed RequestContext whose state should be
bound to this RequestContextotherpublic <T extends BaseProxy> T create(java.lang.Class<T> clazz)
null.create in interface RequestContextclazz - a Class object of type TBaseProxy instance of type Tpublic <T extends BaseProxy> T edit(T object)
object.edit in interface RequestContextobject - an instance of type TEntityProxy or ValueProxy instance of type Tpublic <P extends EntityProxy> Request<P> find(EntityProxyId<P> proxyId)
null.find in interface RequestContextproxyId - an EntityProxyId instance of type PRequest objectpublic void fire()
fire in interface RequestContextpublic void fire(Receiver<java.lang.Void> receiver)
fire in interface RequestContextreceiver - a Receiver instancepublic RequestFactory getRequestFactory()
null.getRequestFactory in interface RequestContextpublic boolean isChanged()
false.isChanged in interface RequestContexttrue if any changes have been made