org.drools.rule
Class DialectRuntimeRegistry

java.lang.Object
  extended by org.drools.rule.DialectRuntimeRegistry
All Implemented Interfaces:
Externalizable, Serializable

public class DialectRuntimeRegistry
extends Object
implements Externalizable

See Also:
Serialized Form

Constructor Summary
DialectRuntimeRegistry()
           
 
Method Summary
 void clear()
           
 DialectRuntimeData getDialectData(String dialect)
           
 Map getLineMappings()
           
 LineMappings getLineMappings(String className)
           
 boolean isDirty()
           
 void merge(DialectRuntimeRegistry newDatas, org.drools.util.CompositeClassLoader rootClassLoader)
           
 void onAdd(org.drools.util.CompositeClassLoader rootClassLoader)
           
 void onBeforeExecute()
           
 void onRemove()
           
 void readExternal(ObjectInput stream)
          Handles the read serialization of the PackageCompilationData.
 DialectRuntimeData removeFunction(Package pkg, Function function)
           
 DialectRuntimeData removeRule(Package pkg, Rule rule)
           
 void setDialectData(String name, DialectRuntimeData data)
           
 void writeExternal(ObjectOutput stream)
          Handles the write serialization of the PackageCompilationData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialectRuntimeRegistry

public DialectRuntimeRegistry()
Method Detail

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.