server-dev  

Moving class loading stuff to spring-beans.xml

Norman Maurer
Wed, 03 Feb 2010 11:15:54 -0800

Hi all,

after thinking a bit more about the current way how james "load" the
specific implementation of (for example) UsersRepositories or
MailRepositories is really not optimal in terms of injection and J2EE
stuff. I would suggest to move the whole class config of Repositories
(and handlers) to spring-beans.xml  and let the container handle the
loading stuff. In the "normal" configs we then just would let the user
dedicide which implementation he want to choose (he is prolly not
interested in specify the class at all). We could use springs lazy
loading to not waste memory for not needed repository implementations.
So we would be able to easly inject (for example) EntityManager etc.


Does this sound ok to you all ?

Bye,
Norman

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org