public class JavaDialectRuntimeData extends Object implements DialectRuntimeData, Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaDialectRuntimeData.PackageClassLoader
This is an Internal Drools Class
|
| Constructor and Description |
|---|
JavaDialectRuntimeData() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
DialectRuntimeData |
clone(DialectRuntimeRegistry registry,
ClassLoader rootClassLoader) |
DialectRuntimeData |
clone(DialectRuntimeRegistry registry,
ClassLoader rootClassLoader,
boolean excludeClasses) |
byte[] |
getBytecode(String resourceName) |
byte[] |
getClassDefinition(String className) |
Map<String,byte[]> |
getClassDefinitions() |
ClassLoader |
getClassLoader() |
Map<String,Object> |
getInvokers() |
ClassLoader |
getRootClassLoader() |
Map<String,byte[]> |
getStore() |
boolean |
isDirty() |
String[] |
list() |
void |
merge(DialectRuntimeRegistry registry,
DialectRuntimeData newData) |
void |
merge(DialectRuntimeRegistry registry,
DialectRuntimeData newData,
boolean excludeClasses) |
void |
onAdd(DialectRuntimeRegistry registry,
ClassLoader rootClassLoader) |
void |
onBeforeExecute() |
void |
onRemove() |
void |
putAllClassDefinitions(Map classDefinitions) |
void |
putAllInvokers(Map<String,Object> invokers) |
void |
putClassDefinition(String className,
byte[] classDef) |
void |
putInvoker(String className,
Object invoker) |
byte[] |
read(String resourceName) |
void |
readExternal(ObjectInput stream)
Handles the read serialization of the PackageCompilationData.
|
void |
reload()
This class drops the classLoader and reloads it.
|
boolean |
remove(String resourceName) |
void |
removeClassDefinition(String className) |
void |
removeFunction(KnowledgePackageImpl pkg,
Function function) |
void |
removeInvoker(String className) |
void |
removeRule(KnowledgePackageImpl pkg,
RuleImpl rule) |
void |
setDirty(boolean dirty) |
String |
toString() |
void |
wire(String className) |
void |
wire(String className,
Object invoker) |
void |
write(String resourceName,
byte[] clazzData) |
void |
writeExternal(ObjectOutput stream)
Handles the write serialization of the PackageCompilationData.
|
public void writeExternal(ObjectOutput stream) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void onAdd(DialectRuntimeRegistry registry, ClassLoader rootClassLoader)
onAdd in interface DialectRuntimeDatapublic void onRemove()
onRemove in interface DialectRuntimeDatapublic void onBeforeExecute()
onBeforeExecute in interface DialectRuntimeDatapublic DialectRuntimeData clone(DialectRuntimeRegistry registry, ClassLoader rootClassLoader)
clone in interface DialectRuntimeDatapublic DialectRuntimeData clone(DialectRuntimeRegistry registry, ClassLoader rootClassLoader, boolean excludeClasses)
clone in interface DialectRuntimeDatapublic void merge(DialectRuntimeRegistry registry, DialectRuntimeData newData)
merge in interface DialectRuntimeDatapublic void merge(DialectRuntimeRegistry registry, DialectRuntimeData newData, boolean excludeClasses)
merge in interface DialectRuntimeDatapublic boolean isDirty()
isDirty in interface DialectRuntimeDatapublic void setDirty(boolean dirty)
setDirty in interface DialectRuntimeDatapublic byte[] getBytecode(String resourceName)
public ClassLoader getClassLoader()
public ClassLoader getRootClassLoader()
public void removeRule(KnowledgePackageImpl pkg, RuleImpl rule)
removeRule in interface DialectRuntimeDatapublic void removeFunction(KnowledgePackageImpl pkg, Function function)
removeFunction in interface DialectRuntimeDatapublic byte[] read(String resourceName)
public void write(String resourceName, byte[] clazzData)
public void wire(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public void wire(String className, Object invoker) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public boolean remove(String resourceName)
public String[] list()
public void reload()
reload in interface DialectRuntimeDatapublic void clear()
public void removeInvoker(String className)
public void putClassDefinition(String className, byte[] classDef)
public void putAllClassDefinitions(Map classDefinitions)
public byte[] getClassDefinition(String className)
public void removeClassDefinition(String className)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.