public abstract class SerializerServiceBase extends Object implements SerializerService
DocumentSerializerService
. If no <workflowProperties> have been defined in the
data dictionary for a document type (i.e. Document.getDocumentPropertySerizabilityEvaluator()
returns an instance of
AlwaysTruePropertySerializibilityEvaluator
), then this service will revert to using the XmlObjectSerializerService
bean, which was the old way of serializing a document for routing. If workflowProperties are defined, then this implementation
will selectively serialize items.Modifier and Type | Class and Description |
---|---|
class |
SerializerServiceBase.AutoPopulatingListConverter |
class |
SerializerServiceBase.ProxyAndStateAwareJavaReflectionProvider |
class |
SerializerServiceBase.ProxyConverter |
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<PropertySerializabilityEvaluator> |
evaluators |
protected LegacyDataAdapter |
legacyDataAdapter |
protected ThreadLocal<SerializationState> |
serializationStates |
protected XmlObjectSerializerService |
xmlObjectSerializerService |
protected com.thoughtworks.xstream.XStream |
xstream |
Constructor and Description |
---|
SerializerServiceBase() |
Modifier and Type | Method and Description |
---|---|
protected SerializationState |
createNewDocumentSerializationState(Document document) |
protected abstract PropertySerializabilityEvaluator |
getPropertySerizabilityEvaluator(Object dataObject)
Get the appropriate
PropertySerializabilityEvaluator for the given dataObject. |
protected XmlObjectSerializerService |
getXmlObjectSerializerService() |
protected boolean |
ignoreField(Field field)
Method called by the ProxyAndStateAwareJavaReflectionProvider during serialization to determine if a field
should be omitted from the serialized form.
|
String |
serializeBusinessObjectToXml(Object businessObject) |
void |
setLegacyDataAdapter(LegacyDataAdapter legacyDataAdapter) |
void |
setXmlObjectSerializerService(XmlObjectSerializerService xmlObjectSerializerService) |
protected LegacyDataAdapter legacyDataAdapter
protected XmlObjectSerializerService xmlObjectSerializerService
protected com.thoughtworks.xstream.XStream xstream
protected ThreadLocal<SerializationState> serializationStates
protected ThreadLocal<PropertySerializabilityEvaluator> evaluators
public SerializerServiceBase()
public String serializeBusinessObjectToXml(Object businessObject)
protected boolean ignoreField(Field field)
This is a short circuit check that will avoid more expensive calls in to the PropertySerializabilityEvaluator if it returns true.
field
- the fieldprotected abstract PropertySerializabilityEvaluator getPropertySerizabilityEvaluator(Object dataObject)
PropertySerializabilityEvaluator
for the given dataObject.dataObject
- the data objectprotected XmlObjectSerializerService getXmlObjectSerializerService()
public void setXmlObjectSerializerService(XmlObjectSerializerService xmlObjectSerializerService)
protected SerializationState createNewDocumentSerializationState(Document document)
public void setLegacyDataAdapter(LegacyDataAdapter legacyDataAdapter)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.