Class DataObjectSerializerServiceImpl

java.lang.Object
org.kuali.rice.krad.service.impl.SerializerServiceBase
org.kuali.rice.krad.service.impl.DataObjectSerializerServiceImpl
All Implemented Interfaces:
BusinessObjectSerializerService, SerializerService, org.springframework.beans.factory.InitializingBean

public class DataObjectSerializerServiceImpl extends SerializerServiceBase implements BusinessObjectSerializerService
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • DataObjectSerializerServiceImpl

      public DataObjectSerializerServiceImpl()
  • Method Details

    • 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