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
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,Takkbuilder.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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users