Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import  org.kie.api.KieBaseConfiguration;
 
 import static org.drools.impl.adapters.AdapterUtil.adaptMultiValueBaseOption;
 import static org.drools.impl.adapters.AdapterUtil.adaptOption;
import static org.drools.impl.adapters.AdapterUtil.adaptSingleValueBaseOption;
    private final KieBaseConfiguration delegate;
    public KnowledgeBaseConfigurationAdapter(KieBaseConfiguration delegate) {
        this. = delegate;
    }
    public <T extends KnowledgeBaseOptionvoid setOption(T option) {
        .setOption(adaptOption(option));
    }
    public <T extends SingleValueKnowledgeBaseOption> T getOption(Class<T> option) {
        return (T)adaptOption(.getOption(adaptSingleValueBaseOption(option)));
    }
    public <T extends MultiValueKnowledgeBaseOption> T getOption(Class<T> optionString key) {
        return (T)adaptOption(.getOption(adaptMultiValueBaseOption(option), key));
    }
    public void setProperty(String nameString value) {
        .setProperty(namevalue);
    }
    public String getProperty(String name) {
        return .getProperty(name);
    }
    public KieBaseConfiguration getDelegate() {
        return ;
    }
New to GrepCode? Check out our FAQ X