[Yanel-dev] Problem reading spring config when calling from ant
Guillaume Déflache
guillaume.deflache at wyona.com
Mon Apr 6 09:40:18 CEST 2009
Michael Wechner schrieb:
> Hi
Hi!
> When Yanel starts up then the spring config is being read:
> [...]
> Any idea why this is happening? Is this a classpath problem or rather a
> class loading problem of ant intself?
Simon provided more helpful pointers than I can think of ATM, so I will
comment on Spring itself.
Do we really need Spring? We use so little of it, only for selecting
factories' implementations AFAICS.
Maybe it would make sense to:
1 - only get spring-core for Maven (I think such a more strimmed-down
artifact exists, just not sure of its name)
2 - remove the only known to me implementation leakage related to
Spring, that is Yanel.getBeanFactory, which I hope we do not use (at 1st
sight it seems there are also methods to get all the factories we need
that are defined in Spring anyway)
3 - decide if we want to keep Spring for the moment, or do the (for now)
little work manually
4 (maybe) - move to Web Beans which may become the JDK standard for DI
http://seamframework.org/WebBeans http://jcp.org/en/jsr/detail?id=299
Cheers,
Guillaume
More information about the Yanel-development
mailing list