選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }