[jboss-user] [JBoss Microcontainer] - How do I inject a static field when a constructor is private?
Ales Justin
do-not-reply at jboss.com
Sun May 2 07:59:02 EDT 2010
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"How do I inject a static field when a constructor is private?"
To view the discussion, visit: http://community.jboss.org/message/540631#540631
--------------------------------------------------------------
> So is there way I can quickly inject a static field in a class that has private constructor?
Hmmmm, yes, this might be a problem aka not possible with current IoC support.
This looks a lot like <constructor> element's support for static factory method.
I'll have a look on how much work would it be to support this.
e.g. factoryClass + (public) factoryField
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540631#540631]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100502/af0ac0f4/attachment.html
More information about the jboss-user
mailing list