org.drools.rule
Class DialectRuntimeRegistry
java.lang.Object
org.drools.rule.DialectRuntimeRegistry
- All Implemented Interfaces:
- Externalizable, Serializable
public class DialectRuntimeRegistry
- extends Object
- implements Externalizable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DialectRuntimeRegistry
public DialectRuntimeRegistry()
writeExternal
public void writeExternal(ObjectOutput stream)
throws IOException
- 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:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput stream)
throws IOException,
ClassNotFoundException
- 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:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
onAdd
public void onAdd(org.drools.util.CompositeClassLoader rootClassLoader)
onRemove
public void onRemove()
setDialectData
public void setDialectData(String name,
DialectRuntimeData data)
getDialectData
public DialectRuntimeData getDialectData(String dialect)
removeRule
public DialectRuntimeData removeRule(Package pkg,
Rule rule)
removeFunction
public DialectRuntimeData removeFunction(Package pkg,
Function function)
merge
public void merge(DialectRuntimeRegistry newDatas,
org.drools.util.CompositeClassLoader rootClassLoader)
isDirty
public boolean isDirty()
onBeforeExecute
public void onBeforeExecute()
clear
public void clear()
getLineMappings
public LineMappings getLineMappings(String className)
getLineMappings
public Map getLineMappings()
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.