Package org.kie.api.conf
Interface OptionsConfiguration<T extends Option,S extends SingleValueOption,M extends MultiValueOption>
- All Superinterfaces:
PropertiesConfiguration
- All Known Subinterfaces:
KieBaseConfiguration,KieBaseOptionsConfiguration,KieSessionConfiguration,KieSessionOptionsConfiguration
public interface OptionsConfiguration<T extends Option,S extends SingleValueOption,M extends MultiValueOption>
extends PropertiesConfiguration
-
Method Summary
Modifier and TypeMethodDescription<X extends OptionsConfiguration<T,S, M>>
Xas(ConfigurationKey<X> configuration) <C extends S>
CGets an option valuedefault <C extends M>
CGets an option value for the given option + key.getOptionKeys(OptionKey<C> optionKey) Deprecated.getOptionSubKeys(OptionKey<C> optionKey) Retrieves the set of all sub keys for a MultiValueOption.void<C extends T>
voidsetOption(C option) Gets an option valueMethods inherited from interface org.kie.api.PropertiesConfiguration
getProperty, setProperty
-
Method Details
-
makeImmutable
void makeImmutable() -
setOption
Gets an option value- Parameters:
option- the option class for the option being requested
-
getOption
Gets an option value- Parameters:
optionKey- SingleValueOption OptionKey to look up the valye for.- Returns:
- the Option value for the given option. Returns null if option is not configured.
-
getOption
Gets an option value for the given option + key. This method should be used for multi-value options, like accumulate functions configuration where one option has multiple values, distinguished by a sub-key.- Parameters:
optionKey- the option class for the option being requestedsubKey- the key for the option being requested- Returns:
- the Option value for the given option + key. Returns null if option is not configured.
-
getOptionKeys
Deprecated.Deprecated, KEY now exists top level, and its preferred to be explicit that this is a sub key- Type Parameters:
C-- Parameters:
optionKey-- Returns:
-
getOptionSubKeys
Retrieves the set of all sub keys for a MultiValueOption.- Parameters:
optionKey- The OptionKey for the MultiValueOption- Returns:
- a Set of Strings
-
getClassLoader
ClassLoader getClassLoader() -
as
-