This content has been marked as final.
Show 1 reply
-
1. Re: JCDI Event observer without parameter?
wangliyu Mar 3, 2010 2:53 PM (in response to wangliyu)Check the API doc. it said:
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface Observes
why can't say @Target({PARAMETER, METHOD}), so that I can use like this:
@Observe
@SomeQualifier
public void someMethod() {
}