A Locator, or the findXxx static method on the entity, is required when an 
entity is sent from the client to the server.

A ServiceLocator is required if you have instance methods on your @Service 
object (the ServiceLocator will then create an instance of the service so 
instance methods can be called). Otherwise, all methods must be static. [1]

They share different purpose.

[1] This only applies to methods declared with a Request return type in the 
RequestContext; it does not apply to methods declared with an 
InstanceRequest return type, as they always apply to domain objects, never 
to "service objects".

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to