public class KnowledgeSessionConfigurationAdapter extends Object implements KnowledgeSessionConfiguration
Constructor and Description |
---|
KnowledgeSessionConfigurationAdapter(org.kie.api.runtime.KieSessionConfiguration delegate) |
Modifier and Type | Method and Description |
---|---|
org.kie.api.runtime.KieSessionConfiguration |
getDelegate() |
<T extends SingleValueKnowledgeSessionOption> |
getOption(Class<T> option)
Gets an option value
|
<T extends MultiValueKnowledgeSessionOption> |
getOption(Class<T> option,
String key)
Gets an option value for the given option + key.
|
String |
getProperty(String name)
Gets a property value
|
<T extends KnowledgeSessionOption> |
setOption(T option)
Sets an option
|
void |
setProperty(String name,
String value)
Sets a property value
|
public KnowledgeSessionConfigurationAdapter(org.kie.api.runtime.KieSessionConfiguration delegate)
public <T extends KnowledgeSessionOption> void setOption(T option)
KnowledgeSessionOptionsConfiguration
setOption
in interface KnowledgeSessionOptionsConfiguration
option
- the option to be set. As options are type safe, the option
itself contains the option key, and so a single parameter
is enough.public <T extends SingleValueKnowledgeSessionOption> T getOption(Class<T> option)
KnowledgeSessionOptionsConfiguration
getOption
in interface KnowledgeSessionOptionsConfiguration
option
- the option class for the option being requestedpublic <T extends MultiValueKnowledgeSessionOption> T getOption(Class<T> option, String key)
KnowledgeSessionOptionsConfiguration
getOption
in interface KnowledgeSessionOptionsConfiguration
option
- the option class for the option being requestedkey
- the key for the option being requestedpublic void setProperty(String name, String value)
PropertiesConfiguration
setProperty
in interface PropertiesConfiguration
public String getProperty(String name)
PropertiesConfiguration
getProperty
in interface PropertiesConfiguration
public org.kie.api.runtime.KieSessionConfiguration getDelegate()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.