Closed arnaudroger closed 5 years ago
Give me directions and I will try.
So the way I see it implemented would be in the reflection service before returning the objectmetadata it would check for the annotation using reflection and try to figure out the immutable class and return an objectmetadata on that one. I should be able to do that quickly the annotations are their at runtime. There is also a style annotation to check that can override the name. If the immutable is not public the we fall back on the interface.
@paulolieuthier I think I've got it there needed to use asm as the annotation are not RUNTIME retention
@arnaudroger awesome. Just tested it, works perfectly.
great! thanks for the feedback!
copy from https://github.com/arnaudroger/SimpleFlatMapper/issues/574#issuecomment-462845517
This is very nice, thanks for the quick response. Unfortunately, now I see I misread the issue. What I would like to do is to use the interface and have sfm use the immutable implementation automatically:
Maybe I could help you build
sfm-immutables
to actually detect@Value.Immutable
and use the generated immutable class?This is the error I get: