[rules-dev] Where is this class "org.drools.agent.impl.KnowledgeAgentProviderImpl" - Drools 6

Charles Moulliard ch007m at gmail.com
Thu May 16 04:16:18 EDT 2013


Hi,

The org.kie.internal.agent.
KnowledgeAgentFactory
KnowledgeAgentFactory class is used to create a KnowledAgent,
KnowledAgentConfiguration.

The loadProvider() method of KnowledgeAgentFactory loads the the following
class :

    private static String providerClassName =
"org.drools.agent.impl.KnowledgeAgentProviderImpl";

    private static void loadProvider() {
        try {
            //loads the provider class
            providerClassName =
System.getProperty(KnowledgeAgentFactory.PROVIDER_CLASS_NAME_PROPERTY_NAME,
providerClassName);

            Class<KnowledgeAgentProvider> cls =
(Class<KnowledgeAgentProvider>) Class.forName(providerClassName);
            setKnowledgeAgentProvider( cls.newInstance() );
        } catch ( Exception e ) {
         }
    }

But this class does not longer exist under Drools 6.0

Questions :

- Is this class replaced by a new one ?
- Have we forget to migrate this class from Drools 5 to Drools 6

Regards,

-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20130516/19f7073c/attachment.html 


More information about the rules-dev mailing list