|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InjectionTargetFactory<T>
An InjectionTargetFactory
can create an InjectionTarget
for a given bean.
The InjectionTargetFactory
obtained from BeanManager#getInjectionTargetFactory()
is
capable of providing container created injection targets. This factory can be wrapped to add behavior
to container created injection targets.
For example:
BeanAttributes<MyBean> myBeanAttributes = beanManager.createBeanAttributes(myBeanAnnotatedType); beanManager.createBean(myBeanAttributes, MyBean.class, new InjectionTargetFactory() { publicInjectionTarget createInjectionTarget(Bean bean) { return new WrappingInjectionTarget (beanManager.getInjectionTargetFactory(myBeanAnnotatedType).createInjectionTarget(bean)); } });
Method Summary | |
---|---|
InjectionTarget<T> |
createInjectionTarget(Bean<T> bean)
Create a new injection target for a bean. |
Method Detail |
---|
InjectionTarget<T> createInjectionTarget(Bean<T> bean)
bean
- the bean to create the injection target for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |