[Yanel-dev] Problem reading spring config when calling from ant
Michael Wechner
michael.wechner at wyona.com
Mon Apr 6 09:44:33 CEST 2009
Guillaume Déflache schrieb:
> 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,
hm? Did I miss his email?
> 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
I need to investigate your suggestions a bit, but I would suggest for
the moment not to use it more than we already do and postpone the
refactoring to later, because we have a lot of issues with higher
priority ;-)
Thanks
Michi
>
> Cheers,
> Guillaume
More information about the Yanel-development
mailing list