org.drools.jsr94.rules
Class RuleServiceProviderImpl

java.lang.Object
  extended by RuleServiceProvider
      extended by org.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.

See Also:
RuleRuntimeImpl, RuleAdministratorImpl, RuleServiceProvider, javax.rules.RuleServiceProviderManager#getRuleServiceProvider(String)

Constructor Summary
RuleServiceProviderImpl()
          Create a new RuleServiceProviderImpl.
 
Method Summary
 RuleExecutionSetRepository getRepository()
           
 RuleAdministrator getRuleAdministrator()
          Returns a class instance of RuleAdministrator.
 RuleRuntime getRuleRuntime()
          Returns a class instance of RuleRuntime.
 
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

getRepository

public RuleExecutionSetRepository getRepository()
Returns:

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