I just want to confirm that I fully understood the prerequisites for CDI to work. If I have a class A:
public class A { @Inject private B b; }
You may use BeanProvider.injectFields(myObject); from Apache DeltaSpike.
BeanProvider.injectFields(myObject);