Sunday, April 1, 2012

Entity Locator and Spring

Hi,

I've been trying to get RequstFactoryServelt to construct my entity locator from spring, because my entity locator needs to implement this findbyId() function which requires DB operations which I have some DAO implemented and I want to inject them into the entity locator. 

However, EntityLocator is created directly, so my injection never worked, I have two questions:

1) It seems I would need  a ServiceLocator equivalent for my entity locator. 
2) Why does gwt needs discticnt between entity service and entity locator? It's probabaly okay if entitylocator don't have to implement this findById() function, because it can be implement locally (no db operation needed). But now i am stuck with both Locator and Service, and they both need to talk to storage.

Cheers.. 

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

No comments:

Post a Comment