public class KnowledgeSessionCleanup extends Object implements org.junit.rules.MethodRule
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<Set<org.kie.internal.runtime.StatefulKnowledgeSession>> |
knowledgeSessionSetLocal |
Constructor and Description |
---|
KnowledgeSessionCleanup() |
Modifier and Type | Method and Description |
---|---|
static void |
addKnowledgeSessionForCleanup(org.kie.internal.runtime.StatefulKnowledgeSession ksession) |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target) |
protected static ThreadLocal<Set<org.kie.internal.runtime.StatefulKnowledgeSession>> knowledgeSessionSetLocal
public static void addKnowledgeSessionForCleanup(org.kie.internal.runtime.StatefulKnowledgeSession ksession)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)
apply
in interface org.junit.rules.MethodRule
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.