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, InternalKnowledgeBase kBase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
determineTraitStatus()
void
enableTMS()
Enable TMS for this object type.String
getClassName()
ObjectTypeNode
getConcreteObjectTypeNode()
EntryPointId
getEntryPoint()
long
getExpirationOffset()
ObjectTypeNode[]
getObjectTypeNodes()
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).TypeDeclaration
getTypeDeclaration()
String
getTypeName()
boolean
isActive()
boolean
isAssignableFrom(Object object)
boolean
isDynamic()
boolean
isEvent()
boolean
isTMSEnabled()
Whether or not, TMS is active for this object type.boolean
isTrait()
boolean
isTraitTMSEnabled()
void
readExternal(ObjectInput stream)
void
resetCache()
void
setExpirationOffset(long expirationOffset)
String
toString()
void
writeExternal(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, InternalKnowledgeBase kBase)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput stream) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
isAssignableFrom
public boolean isAssignableFrom(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 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).
-
isTraitTMSEnabled
public boolean isTraitTMSEnabled()
- Specified by:
isTraitTMSEnabled
in interfaceObjectTypeConf
-
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
-
isTrait
public boolean isTrait()
- Specified by:
isTrait
in interfaceObjectTypeConf
-
determineTraitStatus
protected boolean determineTraitStatus()
-
getTypeDeclaration
public TypeDeclaration getTypeDeclaration()
- Specified by:
getTypeDeclaration
in interfaceObjectTypeConf
-
isDynamic
public boolean isDynamic()
- Specified by:
isDynamic
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 EntryPointId getEntryPoint()
- Specified by:
getEntryPoint
in interfaceObjectTypeConf
-
getClassName
public String getClassName()
-
getTypeName
public String getTypeName()
- Specified by:
getTypeName
in interfaceObjectTypeConf
-
-