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(EntryPointId entryPoint, java.lang.Class<?> clazz, RuleBase ruleBase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalFactHandlecreateFactHandle(FactHandleFactory factHandleFactory, long id, java.lang.Object object, long recency, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint entryPoint)voidenableTMS()Enable TMS for this object type.java.lang.StringgetClassName()ObjectTypeNodegetConcreteObjectTypeNode()EntryPointIdgetEntryPoint()longgetExpirationOffset()ObjectTypeNode[]getObjectTypeNodes()static java.lang.StringgetPackageName(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).TypeDeclarationgetTypeDeclaration()java.lang.StringgetTypeName()booleanisActive()booleanisAssignableFrom(java.lang.Object object)booleanisDynamic()booleanisEvent()booleanisPrototype()booleanisTMSEnabled()Whether or not, TMS is active for this object type.voidreadExternal(java.io.ObjectInput stream)voidresetCache()voidsetExpirationOffset(long expirationOffset)java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput stream)
-
-
-
Constructor Detail
-
ClassObjectTypeConf
public ClassObjectTypeConf()
-
ClassObjectTypeConf
public ClassObjectTypeConf(EntryPointId entryPoint, java.lang.Class<?> clazz, RuleBase ruleBase)
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException- Specified by:
writeExternalin 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:
createFactHandlein interfaceObjectTypeConf
-
isAssignableFrom
public boolean isAssignableFrom(java.lang.Object object)
- Specified by:
isAssignableFromin interfaceObjectTypeConf
-
getExpirationOffset
public long getExpirationOffset()
-
setExpirationOffset
public void setExpirationOffset(long expirationOffset)
-
getConcreteObjectTypeNode
public ObjectTypeNode getConcreteObjectTypeNode()
- Specified by:
getConcreteObjectTypeNodein 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:
resetCachein interfaceObjectTypeConf
-
getObjectTypeNodes
public ObjectTypeNode[] getObjectTypeNodes()
- Specified by:
getObjectTypeNodesin interfaceObjectTypeConf
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceObjectTypeConf
-
isEvent
public boolean isEvent()
- Specified by:
isEventin interfaceObjectTypeConf
-
getTypeDeclaration
public TypeDeclaration 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
public EntryPointId getEntryPoint()
- Specified by:
getEntryPointin interfaceObjectTypeConf
-
getClassName
public java.lang.String getClassName()
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceObjectTypeConf
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-