Package org.kuali.rice.krad.service.impl
Class DataObjectSerializerServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.SerializerServiceBase
org.kuali.rice.krad.service.impl.DataObjectSerializerServiceImpl
- All Implemented Interfaces:
org.kuali.rice.krad.service.BusinessObjectSerializerService,org.kuali.rice.krad.service.SerializerService,org.springframework.beans.factory.InitializingBean
public class DataObjectSerializerServiceImpl
extends SerializerServiceBase
implements org.kuali.rice.krad.service.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, SerializerServiceBase.Serializer<T> -
Field Summary
Fields inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
currentPathTracker, evaluators, legacyDataAdapter, pathToSerializationState, xmlObjectSerializerService, xstream, xStreamSecurityService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorgetPropertySerizabilityEvaluator(Object businessObject) Get the appropriatePropertySerializabilityEvaluatorfor the given dataObject.protected booleanignoreField(Field field) ExaminesSerializedandTransientannotations to determine if the field should not be serialized.Methods inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
afterPropertiesSet, doSerialization, getCurrentPathTracker, getXmlObjectSerializerService, serializeBusinessObjectToXml, setLegacyDataAdapter, setXmlObjectSerializerService, setXStreamSecurityServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.service.BusinessObjectSerializerService
serializeBusinessObjectToXml
-
Constructor Details
-
DataObjectSerializerServiceImpl
public DataObjectSerializerServiceImpl()
-
-
Method Details
-
getPropertySerizabilityEvaluator
public org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator getPropertySerizabilityEvaluator(Object businessObject) Get the appropriatePropertySerializabilityEvaluatorfor the given dataObject.- Specified by:
getPropertySerizabilityEvaluatorin classSerializerServiceBase- Parameters:
businessObject- the data object- Returns:
- the evaluator
-
ignoreField
ExaminesSerializedandTransientannotations 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:
ignoreFieldin classSerializerServiceBase- Parameters:
field- the field- Returns:
- true if the field should be omitted
-