Class ServiceBasedEntityConverter<O extends Identifiable>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter

        org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> convertibleTypes  
    • Field Detail

      • convertibleTypes

        protected final Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> convertibleTypes
    • Constructor Detail

      • ServiceBasedEntityConverter

        public ServiceBasedEntityConverter​(BaseReadOnlyService<? extends O> service,
                                           Class<O> entityType)
    • Method Detail

      • matches

        public boolean matches​(org.springframework.core.convert.TypeDescriptor sourceType,
                               org.springframework.core.convert.TypeDescriptor targetType)
        Specified by:
        matches in interface org.springframework.core.convert.converter.ConditionalConverter
      • getConvertibleTypes

        public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
        Specified by:
        getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverter
      • convert

        public Object convert​(@Nullable
                              Object source,
                              org.springframework.core.convert.TypeDescriptor sourceType,
                              org.springframework.core.convert.TypeDescriptor targetType)
        Specified by:
        convert in interface org.springframework.core.convert.converter.GenericConverter