com.ibm.commerce.rules
Class RulesSystemToolbox

java.lang.Object
  |
  +--com.ibm.commerce.rules.RulesSystemToolbox

public class RulesSystemToolbox
extends java.lang.Object

A home for objects used by the rules system component. Uses the "aggregating singleton" strategy so that the individual classes do not need to be singletons.


Method Summary
 com.ibm.commerce.services.logging.ComponentLogger createLogger(java.lang.String className)
          Creates a ComponentLogger tied to the rules system's own logging service that can be used within any class to do logging.
 com.ibm.commerce.rules.BlazeLicenseConfigurator getBlazeLicenseConfigurator()
           
 com.ibm.commerce.rules.BlazeLicenseProvider getBlazeLicenseProvider()
           
 com.ibm.commerce.rules.BlazeLicenseQuotaExceededNotifier getBlazeLicenseQuotaExceededNotifier()
           
static RulesSystemToolbox getInstance()
           
 com.ibm.commerce.rules.LoggingService getLoggingService()
           
 com.ibm.commerce.rules.util.NativeRuleServerConfigFactory getNativeRuleServerConfigurationFactory()
           
 com.ibm.commerce.rules.util.NativeRuleServiceConfigFactory getNativeRuleServiceConfigurationFactory()
           
 RulesSystemLoggingService getRulesSystemLoggingService()
           
static void reset()
          Resets the toolbox instance used by the rest of the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLogger

public com.ibm.commerce.services.logging.ComponentLogger createLogger(java.lang.String className)
Creates a ComponentLogger tied to the rules system's own logging service that can be used within any class to do logging.

Standard usage is to create a logger for each class.

 public class MyClass {
     private static final ComponentLogger logger = RulesSystemToolbox.getInstance().createLogger(MyClass.class.getName());
     ...
     public void someMethod() {
         logger.entry("someMethod");    // Logs entry into the method.
         logger.trace("someMethod", "A trace message...");
         ...
     }
     ...
 }
 
Parameters:
className - The name of the class the logger will log for.

getBlazeLicenseConfigurator

public com.ibm.commerce.rules.BlazeLicenseConfigurator getBlazeLicenseConfigurator()

getBlazeLicenseProvider

public com.ibm.commerce.rules.BlazeLicenseProvider getBlazeLicenseProvider()

getBlazeLicenseQuotaExceededNotifier

public com.ibm.commerce.rules.BlazeLicenseQuotaExceededNotifier getBlazeLicenseQuotaExceededNotifier()

getInstance

public static RulesSystemToolbox getInstance()

getLoggingService

public com.ibm.commerce.rules.LoggingService getLoggingService()

getNativeRuleServerConfigurationFactory

public com.ibm.commerce.rules.util.NativeRuleServerConfigFactory getNativeRuleServerConfigurationFactory()

getNativeRuleServiceConfigurationFactory

public com.ibm.commerce.rules.util.NativeRuleServiceConfigFactory getNativeRuleServiceConfigurationFactory()

getRulesSystemLoggingService

public RulesSystemLoggingService getRulesSystemLoggingService()

reset

public static void reset()
Resets the toolbox instance used by the rest of the system. Useful for clearing caches and so on.