Hi,
In Errai we support both javax.inject and com.google.inject. Errai's
IOC container should be able to satisfy all these injection points. I
think we could find a way to bootstrap GWTP without GIN and let Errai
take care of dependency injection.
We are pretty busy with the 2.0 release but I am definitely interested
in making this work. Contributions are very welcome of course :)!
Cheers,
Christian
On Apr 13, 3:03 pm, V <
valen...@nvcode.com> wrote:
> Thanks for the response and the pointers. Yes,Erraiis using javax
> annotations. I'm going to go through the code with a finer comb and
> come back with more questions. The two lines were in the GWT module
> configuration.
>
> Currently my project is using GWTP for the client implementation andErraifor the client-server (and server-client -Erraiwonderfully and
> seamlessly integrates reverse Ajax) communication. Having CDI support
> would make the code super elegant, but wouldn't add or remove any
> functionality.
>
> Cheers,
>
> V.
>
> On Apr 11, 4:23 am, Christian Goudreau <
goudreau.christ...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Well, there may be some ways to simplify the process. IsErraiusing Javax
> > annotations?
>
> > If yes, we may only need to change the google provider that we're still
> > using into the gwtp generator by the Javax provider, you would still need
> > to bind the gin.ginjector and give it to the gwtp generators.
>
> > We would also need to encapsulate the Ginjector into a provider that will
> > be able to handle both representation. It's not that big of a change, but
> > my assumptions may be wrong...
>
> > Don't forget those two line in your ui.xml:
>
> > <define-configuration-property name='gin.ginjector'
> > is-multi-valued='false'/>
> > <set-configuration-property name='gin.ginjector' value='You're ginjector'/>
>
> > Cheers,
>
> > On Sun, Apr 8, 2012 at 4:31 PM, V <
valen...@nvcode.com> wrote:
> > > I'd like to use theErraievent bus and theErraiCDI in a GWT
> > > application built using GWTP. SinceErraiprovides its own IoC
> > > container, it would simplify things a great deal if theErraicould be
> > > used instead of Gin to manage the GWTP-related components.
>
> > > If I just leave out the Gin configuration and hope thatErraitakes
> > > over (using the correct injection annotations, of course) leads to the
> > > following error message on startup:
>
> > > The required configuration property 'gin.ginjector' was not found.
>
> > > I'm just trying to get an idea of the size of the problem - would it
> > > be trivial to change GWTP to useErraior would it be a large effort?