
com.github.thorbenkuck.di.annotations.aspects.Aspect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wire-di-annotations Show documentation
Show all versions of wire-di-annotations Show documentation
Easy and simple di using annotation processors
The newest version!
package com.github.thorbenkuck.di.annotations.aspects;
import java.lang.annotation.*;
/**
* Marks an aspect enabled method, which is found inside a class annotated with {@link Facet {@literal @Facet}}.
*
* Methods annotated with this annotation, must fulfill two criteria:
*
*
* - The class which holds this method must be annotated with {@link Facet {@literal @Facet}}
* - The sole parameter of the method must be an ExecutionContext with the same generic value as declared in {@link #around()}
*
*
* Any other scenario should be rejected by the annotation processor.
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.METHOD)
@Inherited
public @interface Aspect {
/**
* The annotation, this aspect is meant to process
*
* @return the annotation that triggers this specific aspect
*/
Class extends Annotation> around();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy