Set<ProducerMethodBean<?>> producerMethods = definitionUtil.defineProducerMethods(component);
for (ProducerMethodBean<?> producerMethod : producerMethods)
{
// add them one after the other to enable serialization handling et al
manager.addBean(producerMethod);
manager.putInjectionTargetWrapper(producerMethod, new InjectionTargetWrapper(new ProducerBeansProducer(producerMethod)));
}
Set<ProducerFieldBean<?>> producerFields = definitionUtil.defineProducerFields(component);
for (ProducerFieldBean<?> producerField : producerFields)
{
// add them one after the other to enable serialization handling et al
manager.addBean(producerField);
manager.putInjectionTargetWrapper(producerField, new InjectionTargetWrapper(new ProducerBeansProducer(producerField)));
}
definitionUtil.defineDisposalMethods(component);
definitionUtil.defineInjectedFields(component);