public class SolverConfigContext extends Object
SolverConfig.buildSolver(SolverConfigContext)
to inject a reference to containers, .Constructor and Description |
---|
SolverConfigContext() |
SolverConfigContext(ClassLoader classLoader) |
SolverConfigContext(org.kie.api.runtime.KieContainer kieContainer) |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
determineActualClassLoader() |
ClassLoader |
getClassLoader()
Used to work with a
ClassLoader provided by OSGi, JBoss modules, etc, but not KieContainer . |
org.kie.api.runtime.KieContainer |
getKieContainer()
Must be null if
getClassLoader() is not null. |
void |
setClassLoader(ClassLoader classLoader) |
void |
setKieContainer(org.kie.api.runtime.KieContainer kieContainer) |
void |
validate() |
public SolverConfigContext()
public SolverConfigContext(ClassLoader classLoader)
public SolverConfigContext(org.kie.api.runtime.KieContainer kieContainer)
public ClassLoader getClassLoader()
ClassLoader
provided by OSGi, JBoss modules, etc, but not KieContainer
.
Must be null if getKieContainer()
is not null.ClassLoader
to use for loading all resources and Class
es,
if this is null and getKieContainer()
is also null, then the default ClassLoader
is usedpublic void setClassLoader(ClassLoader classLoader)
public org.kie.api.runtime.KieContainer getKieContainer()
getClassLoader()
is not null.ClassLoader
to use for loading all resources and Class
espublic void setKieContainer(org.kie.api.runtime.KieContainer kieContainer)
public ClassLoader determineActualClassLoader()
public void validate()
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.