ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbuch4 <hb...@straussauto.com>
Subject don't call Managed Bean init method
Date Thu, 14 Aug 2008 21:05:46 GMT

Is there any way to prevent Ibatis from calling the init method of my
ManagedBean, when it creates a new bean for a ResultMap?

I only want to call the ManagedBean's init method when it is being
instantiated through MyFaces, NOT through Ibatis. The only solution I
thought of was, before the init method, to iterate through the stack trace
and skip over if it finds: 

at com.ibatis.common.beans.ClassInfo.instantiateClass

but execute if:

at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance

but this seems a little clunky.....

any ideas?

thanks, Heather Buch
View this message in context: http://www.nabble.com/don%27t-call-Managed-Bean-init-method-tp18989735p18989735.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message