Example usage for org.springframework.context.expression AnnotatedElementKey AnnotatedElementKey

List of usage examples for org.springframework.context.expression AnnotatedElementKey AnnotatedElementKey

Introduction

In this page you can find the example usage for org.springframework.context.expression AnnotatedElementKey AnnotatedElementKey.

Prototype

public AnnotatedElementKey(AnnotatedElement element, @Nullable Class<?> targetClass) 

Source Link

Document

Create a new instance with the specified AnnotatedElement and optional target Class .

Usage

From source file:org.springframework.context.event.ApplicationListenerMethodAdapter.java

public ApplicationListenerMethodAdapter(String beanName, Class<?> targetClass, Method method) {
    this.beanName = beanName;
    this.method = method;
    this.targetClass = targetClass;
    this.bridgedMethod = BridgeMethodResolver.findBridgedMethod(method);

    Method targetMethod = ClassUtils.getMostSpecificMethod(method, targetClass);
    EventListener ann = AnnotatedElementUtils.findMergedAnnotation(targetMethod, EventListener.class);

    this.declaredEventTypes = resolveDeclaredEventTypes(method, ann);
    this.condition = (ann != null ? ann.condition() : null);
    this.order = resolveOrder(method);

    this.methodKey = new AnnotatedElementKey(method, targetClass);
}