org.osgl.inject.annotation.Nonbinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of genie Show documentation
Show all versions of genie Show documentation
A JSR330 style dependency injection solution
package org.osgl.inject.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Note this annotation class is borrowed from cdi-api
*
*
* Excludes a member of an annotation type (such as a {@linkplain javax.inject.Qualifier qualifier type} or
* {@linkplain javax.interceptor interceptor binding type}) from consideration when the container compares two annotation
* instances.
*
*
*
* @Qualifier
* @Retention(RUNTIME)
* @Target({ METHOD, FIELD, PARAMETER, TYPE })
* public @interface PayBy {
* PaymentMethod value();
*
* @Nonbinding
* String comment();
* }
*
*
* @author Gavin King
*
* @see javax.inject.Qualifier @Qualifier
* @see javax.interceptor.InterceptorBinding @InterceptorBinding
*
*/
@Retention(RUNTIME)
@Target(METHOD)
public @interface Nonbinding {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy