Class AbstractReentrantDeserializationHandler
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
- All Implemented Interfaces:
- DeserializationHandler
- Direct Known Subclasses:
- AbstractBodyDecoderHandler,- AssociatedDataHandler,- BooleanHandler,- EnumHandler,- IgPathHandler,- QualifiedPathHandler,- TagPathHandler
public abstract class AbstractReentrantDeserializationHandler
extends AbstractDeserializationHandler
This is a specialization of AbstractDeserializationHandler built for handlers that return false from
 
DeserializationHandler.supportsNestedElements() and are designed to be re-entrant (do not store any state).
 It stores the object and the reference ID as thread locals to support multi-threaded access.
- 
Field SummaryFieldsFields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandlerobject, refId
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the most recent object that this handler created.intgetRefId()Returns the reference id that was in the start of this element, or -1 if there was noneprotected voidvoidsetRefId(int id) Sets the ref-id that was found at the start of this element, if any.Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandlerclone, endObject, endSubElement, startSubElementMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.xmlserialization.deserialization.DeserializationHandlerendElement, getBodyDecoder, getElementName, onBody, startElement, supportsNestedElements
- 
Field Details- 
objectTL
- 
refTL
 
- 
- 
Constructor Details- 
AbstractReentrantDeserializationHandlerpublic AbstractReentrantDeserializationHandler()
 
- 
- 
Method Details- 
getObjectDescription copied from interface:DeserializationHandlerReturns the most recent object that this handler created. Note that a handler needs to have this function return its object as early as possible, not just after endElement() has been called. This is used for populating the reference map.- Specified by:
- getObjectin interface- DeserializationHandler
- Overrides:
- getObjectin class- AbstractDeserializationHandler
 
- 
setObject- Overrides:
- setObjectin class- AbstractDeserializationHandler
 
- 
getRefIdpublic int getRefId()Description copied from interface:DeserializationHandlerReturns the reference id that was in the start of this element, or -1 if there was none- Specified by:
- getRefIdin interface- DeserializationHandler
- Overrides:
- getRefIdin class- AbstractDeserializationHandler
 
- 
setRefIdpublic void setRefId(int id) Description copied from interface:DeserializationHandlerSets the ref-id that was found at the start of this element, if any.- Specified by:
- setRefIdin interface- DeserializationHandler
- Overrides:
- setRefIdin class- AbstractDeserializationHandler
 
 
-