[rules-users] re: NumberGuessExample

Mauricio Salatino salaboy at gmail.com
Wed Jun 10 14:16:06 EDT 2009


This is only a reference to know in which class loader is the resource...
The idea is to know that the resource (in this case: NumberGuess.drl and
NumberGuess.rf) is in the same class loader that the ShoppingExample.*class*

2009/6/10 Tak-po Li <takpo.li at gmail.com>

>
> I am a newbie with Drools rules.  I just download the examples.  I notice
> in line19 of  NumberGuessExample.java, there are two statement that
> referring to ShoppingExample.*class.*
>
> It seems this is different example.  Could someone help me out?
>
> Thanks,
>
> Tak
>
>
>
> kbuilder.add( ResourceFactory.*newClassPathResource*(
> "NumberGuess.drl",
>
> ShoppingExample.
> *class* ),
>
> ResourceType.
> *DRL* );
>
> kbuilder.add( ResourceFactory.*newClassPathResource*(
> "NumberGuess.rf",
>
> ShoppingExample.
> *class* ),
>
> ResourceType.
> *DRF* );
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090610/a4e6ce23/attachment.html 


More information about the rules-users mailing list