jcabi-aspects
所属分类:Java编程
开发工具:Java
文件大小:0KB
下载次数:0
上传日期:2023-06-21 11:01:11
上 传 者:
sh-1993
说明: AspectJ Java特性的集合,用于促进面向方面的编程模式:日志记录、缓存、验证...
(Collection of AspectJ Java Aspects to facilitate aspect-oriented programming patterns: logging, caching, validating, etc.)
文件列表:
.0pdd.yml (93, 2023-12-21)
.pdd (149, 2023-12-21)
.rultor.yml (669, 2023-12-21)
LICENSE.txt (1475, 2023-12-21)
pom.xml (7980, 2023-12-21)
renovate.json (107, 2023-12-21)
src/ (0, 2023-12-21)
src/it/ (0, 2023-12-21)
src/it/fake-validation/ (0, 2023-12-21)
src/it/fake-validation/invoker.properties (27, 2023-12-21)
src/it/fake-validation/pom.xml (3132, 2023-12-21)
src/it/fake-validation/src/ (0, 2023-12-21)
src/it/fake-validation/src/main/ (0, 2023-12-21)
src/it/fake-validation/src/main/aspect/ (0, 2023-12-21)
src/it/fake-validation/src/main/java/ (0, 2023-12-21)
src/it/fake-validation/src/main/java/com/ (0, 2023-12-21)
src/it/fake-validation/src/main/java/com/jcabi/ (0, 2023-12-21)
src/it/fake-validation/src/main/java/com/jcabi/Foo.java (1778, 2023-12-21)
src/it/fake-validation/src/main/resources/ (0, 2023-12-21)
src/it/fake-validation/src/main/resources/META-INF/ (0, 2023-12-21)
src/it/fake-validation/src/main/resources/META-INF/services/ (0, 2023-12-21)
src/it/fake-validation/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider (40, 2023-12-21)
src/it/fake-validation/src/test/ (0, 2023-12-21)
src/it/fake-validation/src/test/aspect/ (0, 2023-12-21)
src/it/fake-validation/src/test/java/ (0, 2023-12-21)
src/it/fake-validation/src/test/java/com/ (0, 2023-12-21)
src/it/fake-validation/src/test/java/com/jcabi/ (0, 2023-12-21)
src/it/fake-validation/src/test/java/com/jcabi/FooTest.java (1808, 2023-12-21)
src/it/fake-validation/src/test/resources/ (0, 2023-12-21)
... ...
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![DevOps By Rultor.com](http://www.rultor.com/b/jcabi/jcabi-aspects)](http://www.rultor.com/p/jcabi/jcabi-aspects)
[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)
[![mvn](https://github.com/jcabi/jcabi-aspects/actions/workflows/mvn.yml/badge.svg)](https://github.com/jcabi/jcabi-aspects/actions/workflows/mvn.yml)
[![PDD status](http://www.0pdd.com/svg?name=jcabi/jcabi-aspects)](http://www.0pdd.com/p?name=jcabi/jcabi-aspects)
[![Javadoc](https://javadoc.io/badge/com.jcabi/jcabi-aspects.svg)](http://www.javadoc.io/doc/com.jcabi/jcabi-aspects)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-aspects/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-aspects)
[![codecov](https://codecov.io/gh/jcabi/jcabi-aspects/branch/master/graph/badge.svg)](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
```
近期下载者:
相关文件:
收藏者: