01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.annotation;
08:
09: import java.lang.annotation.Target;
10: import java.lang.annotation.ElementType;
11: import java.lang.annotation.Retention;
12: import java.lang.annotation.RetentionPolicy;
13:
14: /**
15: * Annotation for after throwing advice
16: *
17: * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
18: */
19: @Target(ElementType.METHOD)
20: @Retention(RetentionPolicy.RUNTIME)
21: public @interface AfterThrowing {
22: /**
23: * The pointcut expression to bind, when no type is specified for the throwned value
24: */
25: String value() default "";
26:
27: /**
28: * The pointcut expression to bind, when a type is specified for the throwned value
29: */
30: String pointcut() default "";
31:
32: /**
33: * The type pattern for the returned value
34: */
35: String type() default "";
36: }
|