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

trip.jsr.cdi.CDIFieldQualifierExtractor Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package trip.jsr.cdi;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

import javax.inject.Inject;
import javax.inject.Qualifier;

import trip.spi.helpers.FieldQualifierExtractor;

public class CDIFieldQualifierExtractor implements FieldQualifierExtractor {

	@Override
	public boolean isAnnotatedWithQualifierAnnotation(Class ann) {
		return ann.isAnnotationPresent( Qualifier.class );
	}

	@Override
	public boolean isASingleElementProvider( Field field ) {
		return field.isAnnotationPresent( Inject.class );
	}

	@Override
	public boolean isAManyElementsProvider( Field field ) {
		return false;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy