How can I implement this method with Xtend?
private void myListenerMethod(@Observes(notifyObserver=IF_EXISTS) @MyAnnotation Boolean value)
{
... Do somehting ...
}
I have here an example for a normal method implementation:
var method_myListenerMethod = toMethod("myListenerMethod", newTypeRef(void), [
'''
... Do something ...
'''
])
method_myListenerMethod.parameters += toParameter("value",newTypeRef('''javax.enterprise.event.Observes'''))
members += method_doSaveOperation