Package org.cyclos.impl.utils.conversion
Class EntityVOConverter<VO extends EntityVO>
- java.lang.Object
-
- org.cyclos.impl.utils.conversion.AbstractBeanConverter<T>
-
- org.cyclos.impl.utils.conversion.ObjectConverter<VO>
-
- org.cyclos.impl.utils.conversion.EntityVOConverter<VO>
-
- All Implemented Interfaces:
BeanConverter<VO>
- Direct Known Subclasses:
AccountHistoryOverviewEntryVOConverter,AccountTypeVOConverter,AccountVOConverter,AddressVOConverter,AgreementLogVOConverter,AlertVOConverter,BasicGroupVOConverter,BasicUserVOConverter,ConfigurationDetailedVOConverter,ConfigurationImageVOConverter,ContactInfoVOConverter,ContactVOConverter,ContentItemVOConverter,CustomFieldDetailedVOConverter,CustomOperationVOConverter,CustomWizardStepDetailedVOConverter,CustomWizardVOConverter,ErrorLogVOConverter,ImageVOConverter,ImportedLineVOConverter,NotificationVOConverter,PhoneVOConverter,PrincipalTypeInputVOConverter,RecordTypeDetailedVOConverter,RecordTypeVOConverter,RecordVOConverter,TokenVOConverter,TransactionVOConverter,TransferDetailedVOConverter,TransferVOConverter,TrustedDeviceVOConverter,VoucherVOConverter
@Component public class EntityVOConverter<VO extends EntityVO> extends ObjectConverter<VO>
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.utils.conversion.AbstractBeanConverter
beanHandler, configurationHandler, conversionHandler, entityManagerHandler, profileFieldHandler
-
-
Constructor Summary
Constructors Constructor Description EntityVOConverter()EntityVOConverter(Class<VO> beanType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfill(Object source, VO vo, Object[] excludingProperties, InvocationContext.ConversionContext context)Copy properties from the source to the destination objectprotected VOinstantiate(Class<VO> beanType, Object source, InvocationContext.ConversionContext context)Instantiate the result object from the given source object.-
Methods inherited from class org.cyclos.impl.utils.conversion.ObjectConverter
convert, getSessionData, registerMapping, resolveDestinationType
-
Methods inherited from class org.cyclos.impl.utils.conversion.AbstractBeanConverter
getApplicationContext, getBeanType, getFormatter
-
-
-
-
Method Detail
-
fill
protected void fill(Object source, VO vo, Object[] excludingProperties, InvocationContext.ConversionContext context)
Description copied from class:ObjectConverterCopy properties from the source to the destination object- Overrides:
fillin classObjectConverter<VO extends EntityVO>
-
instantiate
protected VO instantiate(Class<VO> beanType, Object source, InvocationContext.ConversionContext context)
Description copied from class:ObjectConverterInstantiate the result object from the given source object. By default, just invoke the default constructor on the bean type- Overrides:
instantiatein classObjectConverter<VO extends EntityVO>
-
-