On Nov 13, 2007, at 3:03 PM, Bernhard Huemer wrote:
However, if you really can't live with the seperation of
initialization and postconstruction, what about introducing
"InjectionTasks"? The ManagedBeanBuilder, for example, could
register an InjectionTask that handles the injection of managed
properties. In fact, I'm thinking of a more general approach of
your patch so that others can perform additional injection too.
///
public interface InjectionTask {
public void inject(Object bean) throws ...;
}
Yes, if I understand this new interface correctly then I think it
would provide the best of both worlds. Bravo for an excellent idea!
I actually started this thread to make sure it's OK to change the
LifecycleProvider interface in the upcoming 1.2.1 maintenance
release. No concerns have been raised yet so I think that we can
proceed in that direction.
Would you mind updating the JIRA with this new idea since the rest of
our discussion is recorded there? And if you have a specific
implementation in mind then please feel free to modify my patch. I
really think we are on the right track here.
Best wishes,
Paul