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

org.infinispan.cdi.util.defaultbean.DefaultBeanInformation Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.cdi.util.defaultbean;

import javax.enterprise.util.AnnotationLiteral;
import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.Set;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * We use this annotation as a carrier of qualifiers so that other extensions have access to the original qualifiers of the bean
 * (those removed and replaced by synthetic qualifier by the {@link DefaultBeanExtension}).
 * 
 * @author Jozef Hartinger
 * 
 */
@Target({ TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
public @interface DefaultBeanInformation {

    @SuppressWarnings("all")
    public static class Literal extends AnnotationLiteral implements DefaultBeanInformation {
        private final Set qualifiers;

        public Literal(Set qualifiers) {
            this.qualifiers = qualifiers;
        }

        public Set getQualifiers() {
            return qualifiers;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy