The "newInstance" is the default behavior, which you can override using your 
own ServiceLayerDecorator. Have a look 
at https://github.com/etiennep/injected-requestfactory for an example using 
Guice.
Keep in mind though that everything created by RequestFactory's server-side 
code (except domain objects of course; i.e. locators, service locators and 
services) are kept in a static map so they technically are singletons 
(almost: they're referenced using SoftReferences, so they can be reclaimed 
if the server needs to free memory, and then a new instance will be created 
later on, when needed: this is the ServiceLayerCache)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ic8F1o52MSIJ.
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