[jboss-dev-forums] [Design the new POJO MicroContainer] - Optional injection with @Inject

wolfc do-not-reply at jboss.com
Fri Sep 19 05:20:19 EDT 2008


I need to be able to inject something optionally.

Now if I use InjectionOption.CALLBACK it'll not inject when it's not available, but it'll get injected when it does become available. This is however a state change on my bean after it has been started, which I don't want.

I want the injection to happen now or never (InjectOption.OPTIONAL?).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177601#4177601

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177601



More information about the jboss-dev-forums mailing list