Package org.drools.core.reteoo
Class ClassObjectTypeConf
- java.lang.Object
-
- org.drools.core.reteoo.ClassObjectTypeConf
-
- All Implemented Interfaces:
Externalizable,Serializable,ObjectTypeConf
public class ClassObjectTypeConf extends Object implements ObjectTypeConf, Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static Class<?>[]ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
-
Constructor Summary
Constructors Constructor Description ClassObjectTypeConf()ClassObjectTypeConf(EntryPointId entryPoint, Class<?> clazz, RuleBase ruleBase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalFactHandlecreateFactHandle(FactHandleFactory factHandleFactory, long id, Object object, long recency, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint entryPoint)voidenableTMS()Enable TMS for this object type.StringgetClassName()ObjectTypeNodegetConcreteObjectTypeNode()EntryPointIdgetEntryPoint()longgetExpirationOffset()ObjectTypeNode[]getObjectTypeNodes()static 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).TypeDeclarationgetTypeDeclaration()StringgetTypeName()booleanisActive()booleanisAssignableFrom(Object object)booleanisDynamic()booleanisEvent()booleanisPrototype()booleanisTMSEnabled()Whether or not, TMS is active for this object type.voidreadExternal(ObjectInput stream)voidresetCache()voidsetExpirationOffset(long expirationOffset)StringtoString()voidwriteExternal(ObjectOutput stream)
-
-
-
Field Detail
-
ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
protected static final Class<?>[] ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
-
-
Constructor Detail
-
ClassObjectTypeConf
public ClassObjectTypeConf()
-
ClassObjectTypeConf
public ClassObjectTypeConf(EntryPointId entryPoint, Class<?> clazz, RuleBase ruleBase)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput stream) throws IOException
- 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
public boolean isAssignableFrom(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 String getPackageName(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).
-
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 String getClassName()
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceObjectTypeConf
-
-