Re: Guice 2.0 + DWR

2009-10-29 Thread Pavel
That's how I did it. *dwr.xml* http://getahead.org/dwr/dwr20.dtd";> *com.my.web.drw.GuiceCreator*: package com.my.web.dwr; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.directwebremoting.

Re: Guice + Servlet Example

2009-10-29 Thread Alen Vrečko
Maybe this will give you some ideas: http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ Cheers Alen On Oct 29, 9:00 pm, Budband wrote: > Any other examples of Guice + GWT RPC would be great. > > On Oct 29, 1:48 pm, Budband wrote: > > > I am new to Guice and wanted to use it on the Se

Re: Guice + Servlet Example

2009-10-29 Thread Budband
Any other examples of Guice + GWT RPC would be great. On Oct 29, 1:48 pm, Budband wrote: > I am new to Guice and wanted to use it on the Serverside.  I am using > GWT plugin with Eclipse, which nicely creates a GWT project i.e. with > greeting service.  Can anybody provide the changes I need to

Re: Guice 2.0 + DWR

2009-10-29 Thread Tim Peierls
The biggest wart in the DWR - Guice 1 integration is all the API and code needed to make it play well with Guice Servlet 1.0. I rolled my own ServletContextListener because Guice Servlet's listener (at the time) didn't expose the name under which the injector was published in the servlet context,

Guice + Servlet Example

2009-10-29 Thread Budband
I am new to Guice and wanted to use it on the Serverside. I am using GWT plugin with Eclipse, which nicely creates a GWT project i.e. with greeting service. Can anybody provide the changes I need to do to make that a GUICE enabled project? I know that I need to inject the GuiceModule to this co

Re: AssistedInject and interfaces

2009-10-29 Thread Karthik Krishnan
Hi Jesse, I wanted to create a factory implementation that returns an implementation based on an input parameter. I got it working by refactoring my code using this code example from Allan Vrecko (http://pastie.org/453944) as my guide line. On Thu, Oct 29, 2009 at 12:46 AM, je...@swank.ca wrote:

Re: Injecting domain services in domain objects

2009-10-29 Thread Brian Pontarelli
Rich Hickey (Clojure) does a good presentation on state, identity and values. It presents good concepts that define clean separation, immutability, and logic. I also tend to think about data as separate from logic. It makes the data transmittable and the logic distributable, both across thr

Re: AssistedInject and interfaces

2009-10-29 Thread je...@swank.ca
On Oct 28, 4:08 pm, Karthik Krishnan wrote: > Does my factory have to implement an interface? In our code base, the > convention is not to have a factory implement an interface. Is there > an alternative? AssistedInject requires an interface. Alternately, you create a factory class that receiv