Package org.drools.core
Class BaseConfiguration<T extends Option,S extends SingleValueOption,M extends MultiValueOption>
java.lang.Object
org.drools.core.BaseConfiguration<T,S,M>
- All Implemented Interfaces:
Externalizable,Serializable,PropertiesConfiguration,InternalPropertiesConfiguration
- Direct Known Subclasses:
FlowBaseConfiguration,FlowSessionConfiguration,KieBaseConfigurationImpl,RuleBaseConfiguration,RuleSessionConfiguration,SessionConfiguration
public abstract class BaseConfiguration<T extends Option,S extends SingleValueOption,M extends MultiValueOption>
extends Object
implements InternalPropertiesConfiguration, PropertiesConfiguration, Externalizable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <X extends OptionsConfiguration<T,S, M>>
Xas(ConfigurationKey<X> key) protected final voidfinal ChainedPropertiesfinal ClassLoaderfinal ChainedPropertiesfinal StringgetProperty(String name) final StringgetPropertyValue(String name, String defaultValue) final booleanReturns true if this configuration object is immutable or false otherwise.final voidMakes the configuration object immutable.voidfinal voidsetClassLoader(ClassLoader classLoader) final booleansetProperty(String name, String value) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.internal.conf.InternalPropertiesConfiguration
getInternalProperty, setInternalProperty
-
Field Details
-
compConfig
protected CompositeConfiguration<T extends Option,S extends SingleValueOption, compConfigM extends MultiValueOption>
-
-
Constructor Details
-
BaseConfiguration
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
setProperty
- Specified by:
setPropertyin interfacePropertiesConfiguration
-
getProperty
- Specified by:
getPropertyin interfacePropertiesConfiguration
-
makeImmutable
public final void makeImmutable()Makes the configuration object immutable. Once it becomes immutable, there is no way to make it mutable again. This is done to keep consistency. -
isImmutable
public final boolean isImmutable()Returns true if this configuration object is immutable or false otherwise. -
checkCanChange
protected final void checkCanChange() -
getClassLoader
-
setClassLoader
-
getPropertyValue
-
getProperties
-
getChainedProperties
-
as
-