[rules-users] does drools support Class type parameter? myService(Class objectType)

Wolfgang Laun wolfgang.laun at gmail.com
Thu Nov 17 07:59:17 EST 2011


What and how, exactly, are you trying to write in your DRL?
-W

On 17 November 2011 12:48, kapokfly <ivan.jiang.ww at foxmail.com> wrote:

> does drools support Class type parameter?
>
> In java:
> ServiceLocator.java:
> void myService(Class objectType);
>
> In Drools:
> serviceLocator.myService(Person.class)
>
> It always complains 'unable to resolve method using strict-mode'.
>
> Change to other type like String will get it through.
>
> -----
> Ivan, your Panda, forever
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/does-drools-support-Class-type-parameter-myService-Class-objectType-tp3515507p3515507.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111117/e847bdde/attachment.html 


More information about the rules-users mailing list