当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
PackageCompilationData - JBoss RULES 3.0.6 API 英文版文档
org.drools.rule
Class PackageCompilationData
java.lang.Object
org.drools.rule.PackageCompilationData
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
public class PackageCompilationData
- extends java.lang.Object
- implements java.io.Externalizable
- See Also:
- Serialized Form
Method Summary |
void |
clear()
|
java.lang.Object |
getAST()
|
java.lang.ClassLoader |
getClassLoader()
|
java.util.Map |
getInvokers()
|
java.lang.String[] |
list()
|
void |
putAllInvokers(java.util.Map invokers)
|
void |
putInvoker(java.lang.String className,
java.lang.Object invoker)
|
byte[] |
read(java.lang.String resourceName)
|
void |
readExternal(java.io.ObjectInput stream)
Handles the read serialization of the PackageCompilationData. |
void |
reload()
This class drops the classLoader and reloads it. |
void |
remove(java.lang.String resourceName)
|
void |
removeInvoker(java.lang.String className)
|
void |
setAST(java.lang.Object ast)
|
java.lang.String |
toString()
|
void |
wire(java.lang.String className)
|
void |
wire(java.lang.String className,
java.lang.Object invoker)
|
void |
write(java.lang.String resourceName,
byte[] clazzData)
|
void |
writeExternal(java.io.ObjectOutput stream)
Handles the write serialization of the PackageCompilationData. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PackageCompilationData
public PackageCompilationData()
PackageCompilationData
public PackageCompilationData(java.lang.ClassLoader parentClassLoader)
writeExternal
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.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 java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.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 java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
getClassLoader
public java.lang.ClassLoader getClassLoader()
read
public byte[] read(java.lang.String resourceName)
write
public void write(java.lang.String resourceName,
byte[] clazzData)
throws RuntimeDroolsException
- Throws:
RuntimeDroolsException
remove
public void remove(java.lang.String resourceName)
throws RuntimeDroolsException
- Throws:
RuntimeDroolsException
list
public java.lang.String[] list()
reload
public void reload()
throws RuntimeDroolsException
- This class drops the classLoader and reloads it. During this process it must re-wire all the invokeables.
- Throws:
CheckedDroolsException
RuntimeDroolsException
clear
public void clear()
wire
public void wire(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
wire
public void wire(java.lang.String className,
java.lang.Object invoker)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
putInvoker
public void putInvoker(java.lang.String className,
java.lang.Object invoker)
putAllInvokers
public void putAllInvokers(java.util.Map invokers)
getInvokers
public java.util.Map getInvokers()
removeInvoker
public void removeInvoker(java.lang.String className)
getAST
public java.lang.Object getAST()
setAST
public void setAST(java.lang.Object ast)