Package org.drools.base.rule
Class DialectRuntimeRegistry
java.lang.Object
org.drools.base.rule.DialectRuntimeRegistry
- All Implemented Interfaces:
Externalizable,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getDialectData(String dialect) getLineMappings(String className) voidmerge(DialectRuntimeRegistry newDatas, ClassLoader rootClassLoader) voidmerge(DialectRuntimeRegistry newDatas, ClassLoader rootClassLoader, boolean excludeClasses) voidonAdd(ClassLoader rootClassLoader) voidvoidonRemove()voidreadExternal(ObjectInput stream) Handles the read serialization of the PackageCompilationData.removeFunction(KnowledgePackageImpl pkg, Function function) voidremoveRule(KnowledgePackageImpl pkg, RuleImpl rule) voidsetDialectData(String name, DialectRuntimeData data) voidwriteExternal(ObjectOutput stream) Handles the write serialization of the PackageCompilationData.
-
Constructor Details
-
DialectRuntimeRegistry
public DialectRuntimeRegistry()
-
-
Method Details
-
writeExternal
Handles the write serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by default methods. The PackageCompilationData holds a reference to the generated bytecode. The generated bytecode must be restored before any Rules.- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
Handles the read serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by default methods. The PackageCompilationData holds a reference to the generated bytecode; which must be restored before any Rules. A custom ObjectInputStream, able to resolve classes against the bytecode, is used to restore the Rules.- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
onAdd
-
onRemove
public void onRemove() -
setDialectData
-
getDialectData
-
removeRule
-
removeFunction
-
merge
-
merge
public void merge(DialectRuntimeRegistry newDatas, ClassLoader rootClassLoader, boolean excludeClasses) -
onBeforeExecute
public void onBeforeExecute() -
clear
public void clear() -
getLineMappings
-
getLineMappings
-