<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We have an alternative way now.<div><br></div><div>6.0 is based on Maven for building and deploying, and dependency management. So we now use embedded maven for runtime changes. There is a special project called kie-ci, and a class called KieScanner. Unit tests can be found here:</div><div><a href="https://github.com/droolsjbpm/drools/blob/master/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerTest.java">https://github.com/droolsjbpm/drools/blob/master/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerTest.java</a></div><div><br></div><div>Mark<br><div><div>On 16 May 2013, at 09:16, Charles Moulliard &lt;<a href="mailto:ch007m@gmail.com">ch007m@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>The&nbsp;org.kie.internal.agent.<div style="display:inline;height:auto;width:auto">KnowledgeAgentFactory</div>KnowledgeAgentFactory class is used to create a KnowledAgent, KnowledAgentConfiguration.</div>
<div><br></div><div>The loadProvider() method of KnowledgeAgentFactory loads the the following class :</div><div style="display:inline;height:auto;width:auto"></div><div><br></div><div>&nbsp; &nbsp; private static String providerClassName = "org.drools.agent.impl.KnowledgeAgentProviderImpl";<br>
</div><div><br></div><div><div>&nbsp; &nbsp; private static void loadProvider() {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; try {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //loads the provider class</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; providerClassName = System.getProperty(KnowledgeAgentFactory.PROVIDER_CLASS_NAME_PROPERTY_NAME, providerClassName);</div>
<div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class&lt;KnowledgeAgentProvider&gt; cls = (Class&lt;KnowledgeAgentProvider&gt;) Class.forName(providerClassName);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setKnowledgeAgentProvider( cls.newInstance() );</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; } catch ( Exception e ) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; }</div><div><br></div><div style="">But this class does not longer exist under Drools 6.0</div><div style=""><br></div><div style="">Questions :</div><div style="">
<br></div><div style="">- Is this class replaced by a new one ?</div><div style="">- Have we forget to migrate this class from Drools 5 to Drools 6</div><div><br></div><div style="">Regards,</div><div style=""><br></div>-- <br><div>Charles Moulliard</div>
<div>Apache Committer / Sr. Enterprise Architect (RedHat)</div><div>Twitter : @cmoulliard |&nbsp;Blog : <a href="http://cmoulliard.blogspot.com/" target="_blank">http://cmoulliard.blogspot.com</a></div><div><br></div>
</div></div>
_______________________________________________<br>rules-dev mailing list<br><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-dev</blockquote></div><br></div></body></html>