Hi all,
I’m using GWT 2.5, and RCP to exchange information between client and service.
I’m trying to define the interface that extends RemoteService and another one CRUDService<T> that has among others (CRUD methods) a method:
public Class<T> getDtoType();
But this method is only intended to be user by the implementation, on the server side.
Is there a way not to expose this method to client side?
Otherwise I’m getting an error, when I compile the project, saying Class<T> does not implements Serializeble nor IsSerializeble.
Could anyone give me some feedback?
Thanks,
Luis.
Hi Jens,
Thanks for your answer, the point here is who owns the contract (interface) server or client?
In my perspective is the server, and so this interface could have more than just methods to be expose to client side, in others technologies it can be defined which methods are expose to client, I think it would be interesting to have a way to define interface methods not to be exposed to client side (like a transient annotation).
Hope to hear some feedback.
Luis.