You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by "Nallathambi, Varunkumar" <va...@cgi.com> on 2020/10/01 08:15:59 UTC

swiz IInitializingBean replacement in crux

Hi ,
                Do we have any interface to initialize the bean in crux like IInitializingBean. In our Swiz application we are using this. Need the alternative interface for the same in crux.

Regards,
Varunkumar N


RE: swiz IInitializingBean replacement in crux

Posted by "Nallathambi, Varunkumar" <va...@cgi.com>.
Thanks Carlos. Yes we are having Swiz 0.6.4. Let me try this. 

Regards,
Varunkumar N

-----Original Message-----
From: Carlos Rovira <ca...@apache.org> 
Sent: Thursday, October 1, 2020 5:11 PM
To: Apache Royale Development <de...@royale.apache.org>
Subject: Re: swiz IInitializingBean replacement in crux


EXTERNAL SENDER:   Do not click any links or open any attachments unless you trust the sender and know the content is safe.
EXPÉDITEUR EXTERNE:    Ne cliquez sur aucun lien et n’ouvrez aucune pièce jointe à moins qu’ils ne proviennent d’un expéditeur fiable, ou que vous ayez l'assurance que le contenu provient d'une source sûre.

Hi,

Maybe that was another all Swiz interface from 0.6.4 version?
I don't recoginize it.
Maybe "IInitializing" is the newer one for what I can see in the setUpBean
code:

if( obj is ICruxAware )
ICruxAware( obj ).crux = crux;
if( obj is IBeanFactoryAware )
IBeanFactoryAware( obj ).beanFactory = crux.beanFactory; if( obj is IDispatcherAware ) IDispatcherAware( obj ).dispatcher = crux.dispatcher; if( obj is IInitializing ) IInitializing( obj ).afterPropertiesSet();

Another one I used to implement was ICruxAware



El jue., 1 oct. 2020 a las 10:16, Nallathambi, Varunkumar (<
varunkumar.nallathambi@cgi.com>) escribió:

> Hi ,
>                 Do we have any interface to initialize the bean in 
> crux like IInitializingBean. In our Swiz application we are using 
> this. Need the alternative interface for the same in crux.
>
> Regards,
> Varunkumar N
>
>

--
Carlos Rovira
https://urldefense.proofpoint.com/v2/url?u=http-3A__about.me_carlosrovira&d=DwIFaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=_Sq3Ltwi6jcu4QQ6_EYw1bjH07KBj-0tuPTUi65gpL4&m=poq7OMua2oq_OCPV1zq6MlktSGQ3cYrSnVs9gPnHluE&s=RIk-xHaKP5IAjw0oYLD1OzjhK55SgWOMVSS2StXCnPQ&e= 

Re: swiz IInitializingBean replacement in crux

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

Maybe that was another all Swiz interface from 0.6.4 version?
I don't recoginize it.
Maybe "IInitializing" is the newer one for what I can see in the setUpBean
code:

if( obj is ICruxAware )
ICruxAware( obj ).crux = crux;
if( obj is IBeanFactoryAware )
IBeanFactoryAware( obj ).beanFactory = crux.beanFactory;
if( obj is IDispatcherAware )
IDispatcherAware( obj ).dispatcher = crux.dispatcher;
if( obj is IInitializing )
IInitializing( obj ).afterPropertiesSet();

Another one I used to implement was ICruxAware



El jue., 1 oct. 2020 a las 10:16, Nallathambi, Varunkumar (<
varunkumar.nallathambi@cgi.com>) escribió:

> Hi ,
>                 Do we have any interface to initialize the bean in crux
> like IInitializingBean. In our Swiz application we are using this. Need the
> alternative interface for the same in crux.
>
> Regards,
> Varunkumar N
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira