2 Replies Latest reply on Sep 24, 2008 10:06 AM by Ales Justin

    Optional injection with @Inject

    Carlo de Wolf Master

      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?).