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.

TransportAspect.java 517B

123456789101112131415161718192021222324
  1. /**
  2. * This aspect crosscuts the process of shipping apples.
  3. *
  4. * @author Mik Kersten
  5. * @version $Version$
  6. */
  7. public class TransportAspect
  8. {
  9. private String crateName = "temp crate";
  10. /**
  11. * Bruises each apple in the crate according to the bruise facor. The bruise
  12. * factor is an integer that is passed as a parameter.
  13. */
  14. private void bruiser( int bruiseFactor )
  15. {
  16. for ( int i = 0; i < 5; i++ )
  17. {
  18. System.out.println( "bruising" );
  19. }
  20. }
  21. }