|
From: Magnus H. <ma...@fi...> - 2006-05-04 08:48:34
|
Hi!
I'm not sure if these things are bugs, undocumented featured, or
something else...
Using this setup:
<---->
<aop:spring-configured/>
=09
<bean class=3D"se.lantmateriet.jollen.bryggan.log.DatabaseAppender">
<property name=3D"logDAO" ref=3D"logDAO"/>
</bean>
@Configurable
public class DatabaseAppender extends AppenderSkeleton {
public void setLogDAO(LogDAO logDAO) {
<---->
DatabaseAppender.logDAO is injected just fine.
Using this setup:
<---->
<aop:spring-configured/>
@Configurable(autowire =3D Autowire.BY_NAME)
public class DatabaseAppender extends AppenderSkeleton {
public void setLogDAO(LogDAO logDAO) {
<---->
It's not being injected. Why?
Also, this:
<util:constant static-field=3D"java.sql.Types.VARCHAR"/>
fails with "java.lang.IllegalArgumentException: Attribute 'id' is
required for element 'constant' when used as a top-level tag.". Imho
id should be set to the same string as static-field as default.
--
/Magnus Heino
|