Skip to content
Tyler Treat edited this page Jun 15, 2013 · 4 revisions

Infinitum AOP is used to separate cross-cutting concerns through aspect-oriented programming. With it, developers can alter or extend the behavior of core application code by creating aspects, which are used to apply advice at specific join points.

The AOP module also includes a cache abstraction. When enabled, methods can be marked for caching so that results can be retrieved without invoking the method on subsequent calls with the same arguments. This is particularly valuable for computation- or resource- intensive code.

Infinitum AOP provides access to the event framework, allowing events to be published for consumption by registered subscribers when certain methods are invoked.

Configuration

Aspect-oriented Programming

  • Annotations
    • Aspect: separates cross-cutting concerns from core application code by providing pointcut advice.
    • Before: indicates that the annotated advice is to be executed before a join point is invoked.
    • After: indicates that the annotated advice is to be executed after a join point completes.
    • Around: indicates that the annotated advice is to be executed around a join point.

Cache Abstraction

  • Annotations
    • Cache: indicates that the annotated method is eligible for caching.
    • EvictCache: indicates that the specified cache(s) will be evicted when the annotated method is invoked.
Clone this wiki locally