Package org.drools.core.reteoo
Class ClassObjectTypeConf
java.lang.Object
org.drools.core.reteoo.ClassObjectTypeConf
- All Implemented Interfaces:
Externalizable,Serializable,ObjectTypeConf
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClassObjectTypeConf(EntryPointId entryPoint, Class<?> clazz, InternalRuleBase ruleBase) -
Method Summary
Modifier and TypeMethodDescriptioncreateFactHandle(FactHandleFactory factHandleFactory, long id, Object object, long recency, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint entryPoint) voidEnable TMS for this object type.longstatic StringgetPackageName(Class<?> clazz, 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).booleanisActive()booleanisAssignableFrom(Object object) booleanbooleanisEvent()booleanbooleanWhether or not, TMS is active for this object type.voidreadExternal(ObjectInput stream) voidvoidsetExpirationOffset(long expirationOffset) toString()voidwriteExternal(ObjectOutput stream)
-
Field Details
-
ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
-
-
Constructor Details
-
ClassObjectTypeConf
public ClassObjectTypeConf() -
ClassObjectTypeConf
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
createFactHandle
public InternalFactHandle createFactHandle(FactHandleFactory factHandleFactory, long id, Object object, long recency, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint entryPoint) - Specified by:
createFactHandlein interfaceObjectTypeConf
-
isAssignableFrom
- Specified by:
isAssignableFromin interfaceObjectTypeConf
-
getExpirationOffset
public long getExpirationOffset() -
setExpirationOffset
public void setExpirationOffset(long expirationOffset) -
getConcreteObjectTypeNode
- Specified by:
getConcreteObjectTypeNodein interfaceObjectTypeConf
-
getPackageName
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:
resetCachein interfaceObjectTypeConf
-
getObjectTypeNodes
- Specified by:
getObjectTypeNodesin interfaceObjectTypeConf
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceObjectTypeConf
-
isEvent
public boolean isEvent()- Specified by:
isEventin interfaceObjectTypeConf
-
getTypeDeclaration
- Specified by:
getTypeDeclarationin interfaceObjectTypeConf
-
isDynamic
public boolean isDynamic()- Specified by:
isDynamicin interfaceObjectTypeConf
-
isPrototype
public boolean isPrototype()- Specified by:
isPrototypein interfaceObjectTypeConf
-
isTMSEnabled
public boolean isTMSEnabled()Description copied from interface:ObjectTypeConfWhether or not, TMS is active for this object type.- Specified by:
isTMSEnabledin interfaceObjectTypeConf
-
enableTMS
public void enableTMS()Description copied from interface:ObjectTypeConfEnable TMS for this object type.- Specified by:
enableTMSin interfaceObjectTypeConf
-
getEntryPoint
- Specified by:
getEntryPointin interfaceObjectTypeConf
-
getClassName
-
getTypeName
- Specified by:
getTypeNamein interfaceObjectTypeConf
-
toString
-