<br><br> Assuming your "computesomething" method has a signature like:<br><br>public boolean computesomething() { .. }<br><br> The shadow proxy will delegate the call to your instance method. So, does not matter if the shadow proxy innerObj is null (since being a lazy proxy it may not have been loaded yet) because the shadow proxy will actually execute your instance computesomething() method.<br>
<br> Stack trace?<br><br> []s<br> Edson<br><br><div class="gmail_quote">2008/12/9 Trägenap <span dir="ltr"><<a href="mailto:traegenap@ttc-informatik.de">traegenap@ttc-informatik.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I got some problems with shadowproxy.<br>
<br>
I have a couple of instances of class "FirstObj". The objects contains some other objects like "innerObj" and have a method "computesomething", which returns boolean and use the "innerObj" to compute the result.<br>
<br>
I try to access this object with the following rule:<br>
<br>
rule "doIt"<br>
when<br>
$firstobj : FirstObj(computesomething == true)<br>
then<br>
// take a break...<br>
System.out.println("be happy");<br>
<br>
I debug the programm and figure out that the innerObj is not null. Instead of my original object "firstobj", there I found a FirstObjShadowProxy which offers a field called "innerObj" which is null.<br>
<br>
Isnt it possible to get access to "computed" fields? What is wrong here?<br>
<br>
Thanks<br>
Thorsten<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>