On Sunday, October 13, 2013 4:08:07 PM UTC+2, Manuel wrote:
>
> 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?
>

No. Everything has to be known at compile-time by static-analysis of the 
factory interface (no classpath scanning like for RPC) 

-- 
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+unsubscr...@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.

Reply via email to