Archive for October, 2005

AspectJ’s Moving Parts

Friday, October 28th, 2005

Definitions

  • Join Point - A well-defined point in the program flow; a specific line of code in a specific class file.
  • Pointcut - Picks out certain join points and values at those points; A collection of join points across classes that meet similar criteria.
  • Advice - Code that is executed when a join point is reached; brings together a pointcut (to pick out join points) and a body of code (to run at each of those join points).
  • Aspect - The unit of modularity for crosscutting concerns. They behave somewhat like Java classes, but may also include pointcuts, advice and inter-type declarations.
  • Inter-type Declarations - declarations that cut across classes and their hierarchies; may declare members that cut across multiple classes, or change the inheritance relationship between classes.

General Goodies

  1. Pointcuts and advice dynamically affect program flow, inter-type declarations statically affects a program’s class hierarchy, and aspects encapsulate these new constructs.

Kill ‘Em All

Thursday, October 13th, 2005

A very handy Linux/Unix command: killall -9 your binary



Example:

killall -9 java

…kills all java JVM processes for..say..a runaway servlet container like Tomcat.