All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.thorbenkuck.di.annotations.aspects.Aspect Maven / Gradle / Ivy

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:
 *
 * 
    *
  1. The class which holds this method must be annotated with {@link Facet {@literal @Facet}}
  2. *
  3. The sole parameter of the method must be an ExecutionContext with the same generic value as declared in {@link #around()}
  4. *
* * 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 around(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy