Package com.jcabi.aspects
Annotations for Aspects.
The only dependency you need is (check our latest version available at www.jcabi.com):
<depedency> <groupId>com.jcabi</groupId> <artifactId>jcabi-aspects</artifactId> </dependency>
Read how to use jcabi-aspects
with Maven.
- Since:
- 0.1.10
- See Also:
- project website
-
Class Summary Class Description FakeValidationProvider Fake validation provider for JSR-303.UnitedThrow.None Default empty exception. -
Annotation Types Summary Annotation Type Description Async Marks a method for asynchronous execution.Cacheable Makes a method response cacheable in memory for some time.Cacheable.Flush Deprecated. It is identical toCacheable.FlushBefore
Cacheable.FlushAfter Identifies a method that should flush all cached entities of this class/object, after being executed.Cacheable.FlushBefore Identifies a method that should flush all cached entities of this class/object, before being executed.Immutable Annotates an immutable class.Immutable.Array Identifies that an array-type field should be considered immutable.LogExceptions Log all exceptions thrown out of this method.Loggable Makes a method loggable viaLogger
.Loggable.Quiet Identifies an exception that is never logged byLoggable
if/when being thrown out of an annotated method.Parallel Execute annotated method in multiple threads.Quietly Log all exceptions thrown out of this method and swallow them.RetryOnFailure Retry the method in case of exception.ScheduleWithFixedDelay Schedules the method to run with fixed delay, automatically.Timeable Makes a method time constrained.UnitedThrow Throw only allowed exceptions, encapsulate others.