org.drools.reteoo
Class Rete.ClassObjectTypeConf

java.lang.Object
  extended by org.drools.reteoo.Rete.ClassObjectTypeConf
All Implemented Interfaces:
java.io.Serializable, Rete.ObjectTypeConf
Enclosing class:
Rete

public static class Rete.ClassObjectTypeConf
extends java.lang.Object
implements Rete.ObjectTypeConf, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  ObjectInstantiator instantiator
           
protected  java.lang.Class shadowClass
           
protected  boolean shadowEnabled
           
 
Constructor Summary
Rete.ClassObjectTypeConf(java.lang.Class clazz, InternalRuleBase ruleBase)
           
 
Method Summary
 ObjectTypeNode getConcreteObjectTypeNode()
           
 ObjectTypeNode[] getObjectTypeNodes()
           
static java.lang.String getPackageName(java.lang.Class clazz, java.lang.Package pkg)
          This will return the package name - if the package is null, it will work it out from the class name (this is in cases where funky classloading is used).
 java.lang.Object getShadow(java.lang.Object fact)
           
 boolean isActive()
           
 boolean isAssignableFrom(java.lang.Object object)
           
 boolean isShadowEnabled()
           
 void resetCache()
           
 void setConcreteObjectTypeNode(ObjectTypeNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shadowEnabled

protected boolean shadowEnabled

shadowClass

protected java.lang.Class shadowClass

instantiator

protected transient ObjectInstantiator instantiator
Constructor Detail

Rete.ClassObjectTypeConf

public Rete.ClassObjectTypeConf(java.lang.Class clazz,
                                InternalRuleBase ruleBase)
Method Detail

isAssignableFrom

public boolean isAssignableFrom(java.lang.Object object)
Specified by:
isAssignableFrom in interface Rete.ObjectTypeConf

getConcreteObjectTypeNode

public ObjectTypeNode getConcreteObjectTypeNode()
Specified by:
getConcreteObjectTypeNode in interface Rete.ObjectTypeConf

setConcreteObjectTypeNode

public void setConcreteObjectTypeNode(ObjectTypeNode node)

getPackageName

public static java.lang.String getPackageName(java.lang.Class clazz,
                                              java.lang.Package pkg)
This will return the package name - if the package is null, it will work it out from the class name (this is in cases where funky classloading is used).


getShadow

public java.lang.Object getShadow(java.lang.Object fact)
                           throws RuntimeDroolsException
Specified by:
getShadow in interface Rete.ObjectTypeConf
Throws:
RuntimeDroolsException

isShadowEnabled

public boolean isShadowEnabled()
Specified by:
isShadowEnabled in interface Rete.ObjectTypeConf

resetCache

public void resetCache()
Specified by:
resetCache in interface Rete.ObjectTypeConf

getObjectTypeNodes

public ObjectTypeNode[] getObjectTypeNodes()
Specified by:
getObjectTypeNodes in interface Rete.ObjectTypeConf

isActive

public boolean isActive()
Specified by:
isActive in interface Rete.ObjectTypeConf