Question about tutorial

66 views
Skip to first unread message

mottagio

unread,
Oct 31, 2011, 12:23:01 PM10/31/11
to CDI Advocate
"Let's configure the tranport based on an annotaion in the parent
class of the injection target, namely, AutomatedTellerMachine"

Being "AutomatedTellerMachine" an interface, the annotation will not
be returned from method call:
...
bean.getBeanClass().getAnnotation(TransportConfig.class)
...

At least, this is what is happening to me trying the tutorial
suggestion.
I'm asking how did you get:

deposit called
communicating with bank via Standard transport retries=7

Or am i missing something?

Thx
Reply all
Reply to author
Forward
0 new messages