I’m using GWT 2.5, and RPC to exchange information between client and server.
I’m trying to define the interface that extends RemoteService and another one CRUDService<T> that has among others (CRUD methods) the following 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 (transient method)?
Otherwise I’m getting an error, when I compile the project, saying Class<T> does not implements Serializable nor IsSerializable.
Could anyone help me?
Not possible. Atleast not without hacking gwt-dev and rpc related code for service proxy generation.
In both above scenarios Async Interface cribs first. If you fix it then GWT proxy generators crib about Serialization interface.