org.drools.jsr94.rules
Class RuleServiceProviderImpl

java.lang.Object
  extended byjavax.rules.RuleServiceProvider
      extended byorg.drools.jsr94.rules.RuleServiceProviderImpl

public class RuleServiceProviderImpl
extends RuleServiceProvider

This class provides access to the RuleRuntime and RuleAdministrator implementation supplied by Drools when running under J2SE.

This class should be used in environments without a JNDI provider - typically when writing standalone J2SE clients. Within the J2EE environment the RuleServiceProvider implementation class provided by Drools should be retrieved using a JNDI lookup.

This class should be constructed using the RuleServiceProviderManager.getRuleServiceProvider method.

Author:
thomas diesler
See Also:
RuleRuntimeImpl, RuleAdministratorImpl, RuleServiceProvider, RuleServiceProviderManager.getRuleServiceProvider(String)

Constructor Summary
RuleServiceProviderImpl()
          Create a new RuleServiceProviderImpl.
 
Method Summary
 RuleAdministrator getRuleAdministrator()
          Returns a class instance of RuleAdministrator.
 RuleRuntime getRuleRuntime()
          Returns a class instance of RuleRuntime.
 
Methods inherited from class javax.rules.RuleServiceProvider
createInstance, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleServiceProviderImpl

public RuleServiceProviderImpl()
Create a new RuleServiceProviderImpl.

Method Detail

getRuleRuntime

public RuleRuntime getRuleRuntime()
Returns a class instance of RuleRuntime. Specifically an instance of the Drools RuleRuntimeImpl is returned.

Returns:
an instance of RuleRuntime

getRuleAdministrator

public RuleAdministrator getRuleAdministrator()
Returns a class instance of RuleAdministrator. Specifically an instance of the Drools RuleAdministratorImpl is returned.

Returns:
an instance of RuleAdministrator


Copyright © 2001-2004 The Codehaus. All Rights Reserved.