public class SolverConfigContext extends Object
SolverConfig.buildSolver(SolverConfigContext)
to inject a reference to containers, .Constructor and Description |
---|
SolverConfigContext()
Vanilla context.
|
SolverConfigContext(ClassLoader classLoader)
Useful for OSGi, JBoss modules, ...
|
SolverConfigContext(org.kie.api.runtime.KieContainer kieContainer)
Useful for a kjar deployment.
|
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 |
validate() |
public SolverConfigContext()
public SolverConfigContext(ClassLoader classLoader)
classLoader
- if null behaves as SolverConfigContext()
public SolverConfigContext(org.kie.api.runtime.KieContainer kieContainer)
KieContainer
also defines the non-vanilla ClassLoader
.kieContainer
- if null behaves as SolverConfigContext()
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 org.kie.api.runtime.KieContainer getKieContainer()
getClassLoader()
is not null.ClassLoader
to use for loading all resources and Class
espublic ClassLoader determineActualClassLoader()
public void validate()
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.