Spring Decoupling

9 views
Skip to first unread message

jean

unread,
Jul 25, 2010, 5:38:44 PM7/25/10
to impala-users
Hi,

Went through the code by debugging the unit tests and eventually
answered my question on how to use POJOs.

I was wondering whether it is on the roadmap to decouple impala-core
and spring completely?

Best regards,
Jean

Phil Zoio

unread,
Jul 29, 2010, 4:06:46 AM7/29/10
to impala...@googlegroups.com
Hi Jean

There are two angles from which I can answer your question - I'm not
sure which one you are getting at, possibly because I don't know enough
background to your question.

The first is that the Impala framework itself requires some setup at
runtime, which is done via Spring beans, although for most users would
be controlled via entries in impala.properties.

The second concerns the dependency injection and proxying support which
sits on top of Impala's class loading and module management
capabilities. Again, that is Spring, but here I have been careful to add
abstractions to make it possible to use a non-Spring-based runtime for
within-module wiring of beans and for interacting with the Impala
service registry. To this extent, Impala is already decoupled from
Spring. I have split off separate 'Spring' packages, although I haven't
gone as far as splitting off separate jars, and don't intend to at this
point. So creating an alternative runtime layer for the within module
application configuration and for exporting/importing services from the
service registry is possible (perhaps using something like Google
Guice). I don't have any concrete plans to do this work though.

Hope this answers your question.

Phil

Julien Viet

unread,
Jul 30, 2010, 7:42:09 AM7/30/10
to impala...@googlegroups.com
have you given a though at the @inject spec ?

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

Phil Zoio

unread,
Jul 30, 2010, 9:16:05 AM7/30/10
to impala...@googlegroups.com
Julien,

Yes, you can use @Inject with Spring 3 - works the same as you would expect for beans already visible to the current module's application context. However, it can't pull other services from the service registry.

Phil
Reply all
Reply to author
Forward
0 new messages