RequestFactory - get a Request for a ProxyClass
Hi everyone,
I just started to work with the requestFactory.
Im trying to create a Request for a Proxy.
I made a baseRequest for CRUD functionality that look like this:
// not finished yet
@SkipInterfaceValidation
@Service(value = EntityBase.class, locator = MyServiceLocator.class)
@ExtraTypes({WorkerProxy.class})
public interface EntityBaseRequest<T extends EntityBaseProxy> extends RequestContext {
Request<Void> remove(T obj);
Request<T> persist(T obj);
}
So the WorkerRequest extends my EntityBaseRequest:
@Service(value = Worker.class, locator = MyServiceLocator.class)
public interface WorkerRequest extends EntityBaseRequest<WorkerProxy> {
@Override
Request<Void> remove(WorkerProxy obj);
@Override
Request<WorkerProxy> persist(WorkerProxy obj);
}
My question is, how to create a EntityBaseRequest using the WorkerProxy?
I would like to write:
EntityBaseRequest<AnyProxy> request = requestFactory.entityBaseRequest<AnyProxy>();
instead of
AnyProxyRequest request = requestFactory.anyProxyRequest();
Is this prossible?
Thanks in advanced.
Regards,
Manuel
-- I just started to work with the requestFactory.
Im trying to create a Request for a Proxy.
I made a baseRequest for CRUD functionality that look like this:
// not finished yet
@SkipInterfaceValidation
@Service(value = EntityBase.class, locator = MyServiceLocator.class)
@ExtraTypes({WorkerProxy.class})
public interface EntityBaseRequest<T extends EntityBaseProxy> extends RequestContext {
Request<Void> remove(T obj);
Request<T> persist(T obj);
}
So the WorkerRequest extends my EntityBaseRequest:
@Service(value = Worker.class, locator = MyServiceLocator.class)
public interface WorkerRequest extends EntityBaseRequest<WorkerProxy> {
@Override
Request<Void> remove(WorkerProxy obj);
@Override
Request<WorkerProxy> persist(WorkerProxy obj);
}
My question is, how to create a EntityBaseRequest using the WorkerProxy?
I would like to write:
EntityBaseRequest<AnyProxy> request = requestFactory.entityBaseRequest<AnyProxy>();
instead of
AnyProxyRequest request = requestFactory.anyProxyRequest();
Is this prossible?
Thanks in advanced.
Regards,
Manuel
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home