Interface KieSessionHelper<T>
-
- All Superinterfaces:
ModuleReleaseIdAware
- All Known Implementing Classes:
DefaultKieSessionHelper
public interface KieSessionHelper<T> extends ModuleReleaseIdAware
helper methods interface for KieSessions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TinitializeSession(java.lang.Class<T> kieSessionClass, RuleEvaluationContext context, org.kie.api.runtime.KieContainer kieContainer)given theRuleEvaluationContextand currently active instance ofKieContainer, initializes theKieSessionHelperkie session for evaluation of rulesvoidshutdownKieSessionPools(java.lang.String moduleName, java.lang.String version)Shuts down the kie session pool (if enabled and existing) for the given rule module and version.-
Methods inherited from interface de.hybris.platform.ruleengine.drools.ModuleReleaseIdAware
getDeployedKieModuleReleaseId
-
-
-
-
Method Detail
-
initializeSession
T initializeSession(java.lang.Class<T> kieSessionClass, RuleEvaluationContext context, org.kie.api.runtime.KieContainer kieContainer)
given theRuleEvaluationContextand currently active instance ofKieContainer, initializes theKieSessionHelperkie session for evaluation of rules- Parameters:
kieSessionClass- implementation class of the Kie session (KieSessionorStatelessKieSession)context- instance ofRuleEvaluationContextkieContainer- currently active instance ofKieContainer- Returns:
- initialized instance of
KieSession
-
shutdownKieSessionPools
void shutdownKieSessionPools(java.lang.String moduleName, java.lang.String version)Shuts down the kie session pool (if enabled and existing) for the given rule module and version. This method is invoked after a new rule module has been published successfully.- Parameters:
moduleName- the rule module nameversion- the rule module version
-
-