[EMAIL PROTECTED] ha scritto:
> Author: berndf
> Date: Tue Jul 31 14:09:31 2007
> New Revision: 561544
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=561544
> Log:
> switch from BeanFactoryPostProcessor to BeanPostProcessor. This is for
> mimmicking Avalon lifecycle correctly: Do a complete lifecycle for one
> bean/component, only then go to the next (instead of calling each lifecycle
> method for all beans and then go to the next method, which is wrong)
> use property setter injection consequently.
So, does this solve your previous issue?
PS: ContainerUtil provides helper methods that already do the whole
"if (object instanceof MarkerInterface) (MarkerInterface).callMethod()"
stuff for you.
Stefano
> protected void invokeLifecycleWorker(String beanName, Object bean,
> BeanDefinition beanDefinition) {
> + if (!(bean instanceof Initializable)) return;
> Initializable initializable = (Initializable) bean;
> try {
> initializable.initialize();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]