Package org.drools.core.reteoo
Class ClassObjectTypeConf
- java.lang.Object
-
- org.drools.core.reteoo.ClassObjectTypeConf
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,ObjectTypeConf
public class ClassObjectTypeConf extends java.lang.Object implements ObjectTypeConf, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.Class<?>[]
ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
-
Constructor Summary
Constructors Constructor Description ClassObjectTypeConf()
ClassObjectTypeConf(org.drools.base.rule.EntryPointId entryPoint, java.lang.Class<?> clazz, InternalRuleBase ruleBase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalFactHandle
createFactHandle(FactHandleFactory factHandleFactory, long id, java.lang.Object object, long recency, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint entryPoint)
void
enableTMS()
Enable TMS for this object type.java.lang.String
getClassName()
ObjectTypeNode
getConcreteObjectTypeNode()
org.drools.base.rule.EntryPointId
getEntryPoint()
long
getExpirationOffset()
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).org.drools.base.rule.TypeDeclaration
getTypeDeclaration()
java.lang.String
getTypeName()
boolean
isActive()
boolean
isAssignableFrom(java.lang.Object object)
boolean
isDynamic()
boolean
isEvent()
boolean
isPrototype()
boolean
isTMSEnabled()
Whether or not, TMS is active for this object type.void
readExternal(java.io.ObjectInput stream)
void
resetCache()
void
setExpirationOffset(long expirationOffset)
java.lang.String
toString()
void
writeExternal(java.io.ObjectOutput stream)
-
-
-
Constructor Detail
-
ClassObjectTypeConf
public ClassObjectTypeConf()
-
ClassObjectTypeConf
public ClassObjectTypeConf(org.drools.base.rule.EntryPointId entryPoint, java.lang.Class<?> clazz, InternalRuleBase ruleBase)
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
createFactHandle
public InternalFactHandle createFactHandle(FactHandleFactory factHandleFactory, long id, java.lang.Object object, long recency, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint entryPoint)
- Specified by:
createFactHandle
in interfaceObjectTypeConf
-
isAssignableFrom
public boolean isAssignableFrom(java.lang.Object object)
- Specified by:
isAssignableFrom
in interfaceObjectTypeConf
-
getExpirationOffset
public long getExpirationOffset()
-
setExpirationOffset
public void setExpirationOffset(long expirationOffset)
-
getConcreteObjectTypeNode
public ObjectTypeNode getConcreteObjectTypeNode()
- Specified by:
getConcreteObjectTypeNode
in interfaceObjectTypeConf
-
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).
-
resetCache
public void resetCache()
- Specified by:
resetCache
in interfaceObjectTypeConf
-
getObjectTypeNodes
public ObjectTypeNode[] getObjectTypeNodes()
- Specified by:
getObjectTypeNodes
in interfaceObjectTypeConf
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceObjectTypeConf
-
isEvent
public boolean isEvent()
- Specified by:
isEvent
in interfaceObjectTypeConf
-
getTypeDeclaration
public org.drools.base.rule.TypeDeclaration getTypeDeclaration()
- Specified by:
getTypeDeclaration
in interfaceObjectTypeConf
-
isDynamic
public boolean isDynamic()
- Specified by:
isDynamic
in interfaceObjectTypeConf
-
isPrototype
public boolean isPrototype()
- Specified by:
isPrototype
in interfaceObjectTypeConf
-
isTMSEnabled
public boolean isTMSEnabled()
Description copied from interface:ObjectTypeConf
Whether or not, TMS is active for this object type.- Specified by:
isTMSEnabled
in interfaceObjectTypeConf
-
enableTMS
public void enableTMS()
Description copied from interface:ObjectTypeConf
Enable TMS for this object type.- Specified by:
enableTMS
in interfaceObjectTypeConf
-
getEntryPoint
public org.drools.base.rule.EntryPointId getEntryPoint()
- Specified by:
getEntryPoint
in interfaceObjectTypeConf
-
getClassName
public java.lang.String getClassName()
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interfaceObjectTypeConf
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-