I am re-doing one of the examles in AOP 1.3.1 to use annotations as opposed to meta data. Here is how my annotation is defined:
public @interface billable { int amount() default 0; }
billable b = (billable)invocation.getAdvisor().resolveAnnotation(billable.class);
Ok....I forgot to annotate my billable interface with a proper retention policy. The new billable interface (that now works) looks like this:
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface billable { int amount() default 0; }