<div><br></div> Wolfgang,<div><br></div><div> I think Davide's implementation supports extending existing java classes... did you tried? What is not possible is to implement interfaces, since you can't define methods in the declare statement.</div>
<div><br></div><div> Edson<br><br><div class="gmail_quote">2011/5/28 Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There is, since 5.2.0, the option of extending a class declared in DRL:<br><br>declare A<br> i : int <br>end<br><br>declare B extends A<br> ...<br>end<br><br>Any class origninating from Java code cannot be extended in DRL.<br>
<font color="#888888">
<br>-W</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On 28 May 2011 10:56, Tomas Olsson <span dir="ltr"><<a href="mailto:tol@sics.se" target="_blank">tol@sics.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi,<br>
I have tried to look this up but cannot find any clear answer on the web.<br>
Does drools support extension of existing classes for new type declarations?<br>
That would be very nice if this would be possible.<br>
<br>
/Tomas<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>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
<br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>