https://github.com/jcabi/jcabi-aspects
Collection of AspectJ Java Aspects to facilitate aspect-oriented programming patterns: logging, caching, validating, etc.
https://github.com/jcabi/jcabi-aspects
annotations aop aop-aspects aspect-oriented-programming java
Last synced: 3 months ago
JSON representation
Collection of AspectJ Java Aspects to facilitate aspect-oriented programming patterns: logging, caching, validating, etc.
- Host: GitHub
- URL: https://github.com/jcabi/jcabi-aspects
- Owner: jcabi
- License: other
- Created: 2013-09-04T12:25:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-06-07T09:35:28.000Z (4 months ago)
- Last Synced: 2025-06-07T20:44:02.378Z (4 months ago)
- Topics: annotations, aop, aop-aspects, aspect-oriented-programming, java
- Language: Java
- Homepage: https://aspects.jcabi.com
- Size: 5.72 MB
- Stars: 532
- Watchers: 38
- Forks: 151
- Open Issues: 64
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://www.elegantobjects.org)
[](https://www.rultor.com/p/jcabi/jcabi-aspects)
[](https://www.jetbrains.com/idea/)[](https://github.com/jcabi/jcabi-aspects/actions/workflows/mvn.yml)
[](https://www.0pdd.com/p?name=jcabi/jcabi-aspects)
[](https://www.javadoc.io/doc/com.jcabi/jcabi-aspects)
[](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-aspects)
[](https://codecov.io/gh/jcabi/jcabi-aspects)More details are here: [aspects.jcabi.com](https://aspects.jcabi.com/index.html)
Also, read this blog post: [Java Method Logging with AOP and Annotations](https://www.yegor256.com/2014/06/01/aop-aspectj-java-method-logging.html).
This module contains a collection of useful [AOP](https://en.wikipedia.org/wiki/Aspect-oriented_programming)
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:```java
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](https://aspects.jcabi.com/).
## 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
```