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

org.jboss.weld.bean.interceptor.WeldAnnotatedMethodReader Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
package org.jboss.weld.bean.interceptor;

import org.jboss.interceptor.reader.AnnotatedMethodReader;
import org.jboss.weld.introspector.WeldMethod;

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

/**
 * @author Marius Bogoevici
 */
public class WeldAnnotatedMethodReader implements AnnotatedMethodReader> {

    private static WeldAnnotatedMethodReader INSTANCE = new WeldAnnotatedMethodReader();

    private WeldAnnotatedMethodReader() {
    }

    public static AnnotatedMethodReader> getInstance() {
        return INSTANCE;
    }

    public Annotation getAnnotation(Class annotationClass, WeldMethod methodReference) {
        return methodReference.getAnnotation(annotationClass);
    }

    public Method getJavaMethod(WeldMethod methodReference) {
        return methodReference.getJavaMember();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy