org.kuali.rice.krad.service.impl
Class DataObjectSerializerServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.SerializerServiceBase
      extended by org.kuali.rice.krad.service.impl.DataObjectSerializerServiceImpl
All Implemented Interfaces:
BusinessObjectSerializerService, SerializerService

public class DataObjectSerializerServiceImpl
extends SerializerServiceBase
implements BusinessObjectSerializerService

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
SerializerServiceBase.AutoPopulatingListConverter, SerializerServiceBase.ProxyAndStateAwareJavaReflectionProvider, SerializerServiceBase.ProxyConverter
 
Field Summary
 
Fields inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
evaluators, legacyDataAdapter, serializationStates, xmlObjectSerializerService, xstream
 
Constructor Summary
DataObjectSerializerServiceImpl()
           
 
Method Summary
 PropertySerializabilityEvaluator getPropertySerizabilityEvaluator(Object businessObject)
          Get the appropriate PropertySerializabilityEvaluator for the given dataObject.
protected  boolean ignoreField(Field field)
          Examines Serialized and Transient annotations to determine if the field should not be serialized.
 
Methods inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
createNewDocumentSerializationState, getXmlObjectSerializerService, serializeBusinessObjectToXml, setLegacyDataAdapter, setXmlObjectSerializerService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.service.BusinessObjectSerializerService
serializeBusinessObjectToXml
 

Constructor Detail

DataObjectSerializerServiceImpl

public DataObjectSerializerServiceImpl()
Method Detail

getPropertySerizabilityEvaluator

public PropertySerializabilityEvaluator getPropertySerizabilityEvaluator(Object businessObject)
Get the appropriate PropertySerializabilityEvaluator for the given dataObject.

Specified by:
getPropertySerizabilityEvaluator in class SerializerServiceBase
Parameters:
businessObject - the data object
Returns:
the evaluator

ignoreField

protected boolean ignoreField(Field field)
Examines Serialized and Transient annotations to determine if the field should not be serialized.

Method called by the ProxyAndStateAwareJavaReflectionProvider during serialization to determine if a field should be omitted from the serialized form.

This is a short circuit check that will avoid more expensive calls in to the PropertySerializabilityEvaluator if it returns true.

Overrides:
ignoreField in class SerializerServiceBase
Parameters:
field - the field
Returns:
true if the field should be omitted


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.