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)
KnowledgeBaseOptionsConfiguration
setOption
in interface KnowledgeBaseOptionsConfiguration
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 SingleValueKnowledgeBaseOption> T getOption(Class<T> option)
KnowledgeBaseOptionsConfiguration
getOption
in interface KnowledgeBaseOptionsConfiguration
option
- the option class for the option being requestedpublic <T extends MultiValueKnowledgeBaseOption> T getOption(Class<T> option, String key)
KnowledgeBaseOptionsConfiguration
getOption
in interface KnowledgeBaseOptionsConfiguration
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.KieBaseConfiguration getDelegate()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.