An open API service indexing awesome lists of open source software.

https://github.com/andrei-punko/aspectj-sandbox

Aspects usage examples: compile-time, postcompile-time, load-time weaving
https://github.com/andrei-punko/aspectj-sandbox

aspect aspect-oriented-programming aspectj aspects compile-time-weaving java load-time-weaving post-compile-time-weaving

Last synced: 16 days ago
JSON representation

Aspects usage examples: compile-time, postcompile-time, load-time weaving

Awesome Lists containing this project

README

          

# Different cases of Aspects usage

![Maven Build](https://github.com/andrei-punko/aspectj-sandbox/workflows/Java%20CI%20with%20Maven/badge.svg)
[![Coverage](.github/badges/jacoco.svg)](https://github.com/andrei-punko/aspectj-sandbox/actions/workflows/maven.yml)
[![Branches](.github/badges/branches.svg)](https://github.com/andrei-punko/aspectj-sandbox/actions/workflows/maven.yml)

Based on [this article](https://www.baeldung.com/aspectj)

## Prerequisites

- JDK 21
- Maven 3

## Types of aspects covered

- [Compile-time weaving](compile-time-weaving)
- [Post-compile-time weaving](post-compile-time-weaving)
with [sources](stub-sources-for-post-compile-weaving) for it
- [Load-time weaving](load-time-weaving)

## How to build

```shell
mvn clean install
```