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.

HelloWorldTracing.java 904B

12345678910111213141516171819202122232425262728293031
  1. /*******************************************************************************
  2. * Copyright (c) 2006 IBM Corporation and others.
  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. * Matthew Webster initial implementation
  10. *******************************************************************************/
  11. package demo.hello.tracing;
  12. import org.aspectj.lib.tracing.*;
  13. public aspect HelloWorldTracing extends SimpleTracing {
  14. protected pointcut tracingScope () :
  15. within(hello.*);
  16. /**
  17. * Template method that allows choice of destination for output
  18. *
  19. * @param s message to be traced
  20. */
  21. protected void println (String s) {
  22. System.out.println(s);
  23. }
  24. }