About Scala Fields and Property Changes

As a continuation of this question about Scala @BeanProperty generating change events: what is required to fully implement the behavior that annotates the var field using some custom annotation (like @Property) generates the code needed to trigger property change events? The only way to do this is to write a compiler plugin, right?

More generally: is there a standard way (for example, in Java) for processing annotations in the compiler in Scala?

+3
source share
1 answer

, -, Java, , cglib . - ( ), , - , !

getter setter , , , , .


, Naftoli Gugenhem "" GitHub, , , , .

ObservableBuffer - .

+2

Source: https://habr.com/ru/post/1791180/


All Articles