Skip to content

Collection of AspectJ Java Aspects to facilitate aspect-oriented programming patterns: logging, caching, validating, etc.

License

Notifications You must be signed in to change notification settings

l3r8yJ/jcabi-aspects

This branch is 39 commits behind jcabi/jcabi-aspects:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 23, 2024
Jul 17, 2024
Jan 29, 2018
Jun 22, 2015
Jul 11, 2022
Dec 23, 2016
May 30, 2023
Jan 16, 2024
Feb 24, 2024
Jul 20, 2024
Sep 22, 2022

Repository files navigation

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status Javadoc Maven Central codecov

More details are here: aspects.jcabi.com

Also, read this blog post: Java Method Logging with AOP and Annotations.

This module contains a collection of useful AOP aspects, which allow you to modify the behavior of a Java application without writing a line of code. For example, you may want to retry HTTP resource downloading in case of failure. You can implement a full do/while cycle yourself, or you can annotate your method with @RetryOnFailure and let one of our AOP aspects do the work for you:

import com.jcabi.aspects.RetryOnFailure;

public class MyResource {
    @RetryOnFailure
    public String load(final URL url) {
        return url.openConnection().getContent();
    }
}

Full list of AOP annotations is here.

How to contribute?

Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master branch, if they look correct.

Please run Maven build before submitting a pull request:

$ mvn clean install -Pqulice

About

Collection of AspectJ Java Aspects to facilitate aspect-oriented programming patterns: logging, caching, validating, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.8%
  • Groovy 2.2%