org.fosstrak.capturingapp
Class DefaultECReportHandler

java.lang.Object
  extended by org.fosstrak.capturingapp.ECReportsHandler
      extended by org.fosstrak.capturingapp.DefaultECReportHandler

public class DefaultECReportHandler
extends ECReportsHandler

The default handler. This handler gets always loaded. if you invoke the handler with a change-set file, the handler will use this change-set to load the drools rule set.

Author:
sawielan

Field Summary
 
Fields inherited from class org.fosstrak.capturingapp.ECReportsHandler
changeSet, DEFAULT_RULE_SET, epcis, kbase, kbuilder, ksession, RESULTS
 
Constructor Summary
DefaultECReportHandler()
          default constructor.
DefaultECReportHandler(java.lang.String changeSet)
          create a new handler with a non default change set.
 
Method Summary
 void loadRules()
          // parse and compile the rule from file
kbuilder.add(ResourceFactory.newClassPathResource(
"HelloWorld.drl", HelloWorld.class), ResourceType.DRL);
 
Methods inherited from class org.fosstrak.capturingapp.ECReportsHandler
checkErrors, collectResults, createSession, dispose, executeSession, getChangeSet, handle, prepareGlobalCollector, registerKnowledgeBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultECReportHandler

public DefaultECReportHandler()
default constructor.


DefaultECReportHandler

public DefaultECReportHandler(java.lang.String changeSet)
create a new handler with a non default change set.

Parameters:
changeSet -
Method Detail

loadRules

public void loadRules()
Description copied from class: ECReportsHandler
// parse and compile the rule from file
kbuilder.add(ResourceFactory.newClassPathResource(
"HelloWorld.drl", HelloWorld.class), ResourceType.DRL);

Specified by:
loadRules in class ECReportsHandler


Copyright © 2009. All Rights Reserved.