Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-17 Thread Ronald R. DiFrango
Oleg, Are you generating the Castor classes on the fly? I am successfully using Castor generated classes within the rules engine without any proxy classes. My process is that I use the Castor ant task to generate objects based upon my schema. I then develop my rules against the Castor generated

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-17 Thread Oleg Yavorsky
Chris, I'll try to dig it a little too. My problem is that I need to proxy concrete classes as they are generated from XSD using Castor. If I find workaround I'll let you know. Oleg. Chris West <[EMAIL PROTECTED]> wrote: Oleg, So far I have not been successful. I've just posted my thoughts t

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-17 Thread Chris West
Oleg, So far I have not been successful. I've just posted my thoughts to this list (under the subject "The effect of not using shadow facts"). Concerning the class names, my rules only match on an interface type implemented by the proxies, so the actual class type of the instance does not matte

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-13 Thread Oleg Yavorsky
Chris, I'm thinking about using dynamic proxies in my rules too. I'll be glad to hear about your success with them. I think that there could be problem with matching of facts as they won't be of original class but of Proxy$... one. CGLIB approach doesn't have such problem as it just modifies or

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-13 Thread Mark Proctor
That is not the only thing that determines shadowing. If you look the shadowing is actually determined here: if ( !ruleBase.getConfiguration().isShadowProxy() || cls == null || !ruleBase.getConfiguration().isShadowed( cls.getName() ) ) { return; } By default

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-12 Thread Edson Tirelli
Please! Thank you for providing the solution. []s Edson 2007/7/12, Chris West <[EMAIL PROTECTED]>: OK, I just solved my own problem. My proxy had no package, since the jdk based proxy is only in a package if it has at least 1 non public interface, according to the javadoc. The suspe

[rules-users] Re: Using JDK dynamic proxies as facts

2007-07-12 Thread Chris West
OK, I just solved my own problem. My proxy had no package, since the jdk based proxy is only in a package if it has at least 1 non public interface, according to the javadoc. The suspect code beginning on line 333 is: String pkgName = cls.getPackage().getName(); if ( "org.