concept control - flow in category aspectj

appears as: control-flow, control-flow
AspectJ in Action, Second Edition

This is an excerpt from Manning's book AspectJ in Action, Second Edition.

  • Per control-flow
  • 6.2.3. Per-control-flow association

    Consider a transaction-management aspect. You need to maintain the transactional resource (JDBC connection, Hibernate session) from the point at which the transaction starts until it ends. The per-control-flow aspects offer a possibility of associating an aspect instance with each control flow associated with a join point. The following snippet of a base aspect shows a transaction-management aspect that needs to maintain some state during the control flow of a transaction: