You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AdviceName.java 1.1KB

12345678910111213141516171819202122232425262728293031
  1. /*******************************************************************************
  2. * Copyright (c) 2005 Contributors.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * Adrian Colyer initial implementation
  10. *******************************************************************************/
  11. package org.aspectj.lang.annotation;
  12. import java.lang.annotation.Retention;
  13. import java.lang.annotation.RetentionPolicy;
  14. import java.lang.annotation.Target;
  15. import java.lang.annotation.ElementType;
  16. /**
  17. * Used to annotated code-style advice to name it
  18. * Name is used by reflection api if present, may in future be used in adviceexecution() pcd.
  19. * It is an error to use the @AdviceName annotation on an annotation-style advice declaration.
  20. */
  21. @Retention(RetentionPolicy.RUNTIME)
  22. @Target(ElementType.METHOD)
  23. public @interface AdviceName {
  24. /**
  25. * @return the name of the advice
  26. */
  27. String value();
  28. }