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 Aspect (optional)
16: *
17: * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
18: */
19: @Target(ElementType.TYPE)
20: @Retention(RetentionPolicy.RUNTIME)
21: public @interface Aspect {
22: /**
23: * Deployment model, when no aspect name is specified
24: */
25: String value() default "perJVM";//TODO should be an enum that maps to DeploymentModel
26:
27: /**
28: * Deployment model, when aspect name is specified
29: */
30: String deploymentModel() default "perJVM";
31:
32: /**
33: * Aspect name (defaults to fully qualified name of aspect class)
34: */
35: String name() default "";
36: }
|