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

kikaha.core.cdi.helpers.FieldProviderContext Maven / Gradle / Ivy

package kikaha.core.cdi.helpers;

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

import kikaha.core.cdi.ProviderContext;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;

/**
 * Holds data about a field some value should be injected.
 */
@Getter
@Accessors(fluent=true)
@RequiredArgsConstructor
public class FieldProviderContext implements ProviderContext {

	final Collection> qualifierAnnotations;
	final Field field;

	@Override
	public  A getAnnotation( Class annotationClass ) {
		return field.getAnnotation( annotationClass );
	}

	@Override
	public Class targetType() {
		return field.getType();
	}

	@Override
	public Object attribute( Object key ) {
		return null;
	}

	@Override
	public  T attribute( Class key ) {
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy