Yes, this is required by CDI as of now. It looks rather similar in a "DeltaSpike inspired" config framework used by a recent client.
Werner On Mon, Jun 6, 2016 at 2:49 AM, John D. Ament <[email protected]> wrote: > All, > > Maybe something I'm not clear about. Suppose I have this type safe bean: > > public class TypeSafeConfig { > @Inject > @Config("populated.value") > private String populatedValue; > > public String getPopulatedValue() { > return populatedValue; > } > } > > I was struggling for a while, because I forgot @Inject. I just wanted to > check - this is required by CDI semantics, right? > > If so, I almost wonder if it makes sense to automatically add a post > construct that populates the values. > > John >
