joe panico
2009-09-05 08:47:34 UTC
Hello,
My setup is PicoContainer 2.8.3 against JVM 1.5.
I'm trying to explicitly assign a null in a constructor param:
===
public class ComponentClass{
public ComponentClass(ArgClass arg)
}
}
pico.addComponent("myComponent", ComponentClass.class, new
ConstantParameter(null))
===
produces an unsatisfied dependency error on ArgClass. That's the exact
same result as this:
===
pico.addComponent("myComponent", ComponentClass.class, new ComponentParameter())
===
which makes me think that both calls are going down the same auto
wiring path. How can I get a null assigned?
thanks,
Joe
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
My setup is PicoContainer 2.8.3 against JVM 1.5.
I'm trying to explicitly assign a null in a constructor param:
===
public class ComponentClass{
public ComponentClass(ArgClass arg)
}
}
pico.addComponent("myComponent", ComponentClass.class, new
ConstantParameter(null))
===
produces an unsatisfied dependency error on ArgClass. That's the exact
same result as this:
===
pico.addComponent("myComponent", ComponentClass.class, new ComponentParameter())
===
which makes me think that both calls are going down the same auto
wiring path. How can I get a null assigned?
thanks,
Joe
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email