----- Original Message -----
Hi All,
I am trying to call createPath to create array type of bean. I have registered my own AbstractFactory to the context.
I am calling
jxPathContext.createPath("secondBeanArray[1]/thirdBean")
. I have create the context using FirstBean.
Method getSecondBeanArray() of FirstBean never returns
null it always return a array (may be blank if no
child bean i.e. SecondBean is added).
Problem is createObject() method of my factory is not getting called in this scenario even though there is no SecondBean is added to FirstBean.
I debugged the problem and found that if
getSecondBeanArray() returns a null then only my
factory is getting called.
But I can't return null from getSecondBeanArray() method.
Is there any direct way to solve this problem ?? If not, is there any way if I extend some classes of JXPath API and register those
Thanks Puneet
__________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
