Daniel-Dos commented on a change in pull request #491: TOMEE-2543 - Translate to Portuguese: examples/cdi-events . URL: https://github.com/apache/tomee/pull/491#discussion_r296225703
########## File path: examples/cdi-events/README_pt.adoc ########## @@ -0,0 +1,33 @@ += CDI Events - Loose Coupling and Extensibility +:index-group: CDI +:jbake-type: page +:jbake-status: published + +O CDI permite estender o código de negócios pelo padrão Notificador / Observador. + +Para fazer isso, basta injetar um campo `Event` na classe notifier. Essa classe é um modelo e o tipo de parâmetro é o tipo de objeto a ser disparado. Então, quando você quiser notificar observadores, você simplesmente chamará o método fire do objeto de evento passando como parâmetro o próprio evento. +(sua própria classe!) + +On the other side you annotated a method parameter `@Observes` and the parameter type is the sent type Review comment: thanks. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services