public class KnowledgeSessionConfigurationAdapter extends Object implements KnowledgeSessionConfiguration
| Constructor and Description |
|---|
KnowledgeSessionConfigurationAdapter(org.kie.api.runtime.KieSessionConfiguration delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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
|
int |
hashCode() |
<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)
KnowledgeSessionOptionsConfigurationsetOption in interface KnowledgeSessionOptionsConfigurationoption - 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)
KnowledgeSessionOptionsConfigurationgetOption in interface KnowledgeSessionOptionsConfigurationoption - the option class for the option being requestedpublic <T extends MultiValueKnowledgeSessionOption> T getOption(Class<T> option, String key)
KnowledgeSessionOptionsConfigurationgetOption in interface KnowledgeSessionOptionsConfigurationoption - the option class for the option being requestedkey - the key for the option being requestedpublic void setProperty(String name, String value)
PropertiesConfigurationsetProperty in interface PropertiesConfigurationpublic String getProperty(String name)
PropertiesConfigurationgetProperty in interface PropertiesConfigurationpublic org.kie.api.runtime.KieSessionConfiguration getDelegate()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.