if there are not common solution, would it be better to use plain java interfaces to enject anonymous types?
I think such decision has several advantages:
- it completely separate declaration from implementation, so implementation can be made later
- interfaces can be generated\processed at any time.
- interfaces can be processed by any jvm tools(asm for example)
May be, such approach more difficult to write extension.
But, Ide will be able to support it more easily(it is only declaration)
And it will be much better than nothing.