public class KnowledgeBaseConfigurationAdapter extends Object implements KnowledgeBaseConfiguration
| Constructor and Description |
|---|
KnowledgeBaseConfigurationAdapter(org.kie.api.KieBaseConfiguration delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.kie.api.KieBaseConfiguration |
getDelegate() |
<T extends SingleValueKnowledgeBaseOption> |
getOption(Class<T> option)
Gets an option value
|
<T extends MultiValueKnowledgeBaseOption> |
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 KnowledgeBaseOption> |
setOption(T option)
Sets an option
|
void |
setProperty(String name,
String value)
Sets a property value
|
public KnowledgeBaseConfigurationAdapter(org.kie.api.KieBaseConfiguration delegate)
public <T extends KnowledgeBaseOption> void setOption(T option)
KnowledgeBaseOptionsConfigurationsetOption in interface KnowledgeBaseOptionsConfigurationoption - 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 SingleValueKnowledgeBaseOption> T getOption(Class<T> option)
KnowledgeBaseOptionsConfigurationgetOption in interface KnowledgeBaseOptionsConfigurationoption - the option class for the option being requestedpublic <T extends MultiValueKnowledgeBaseOption> T getOption(Class<T> option, String key)
KnowledgeBaseOptionsConfigurationgetOption in interface KnowledgeBaseOptionsConfigurationoption - 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.KieBaseConfiguration getDelegate()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.