Example usage for org.springframework.aop TargetClassAware getTargetClass

List of usage examples for org.springframework.aop TargetClassAware getTargetClass

Introduction

In this page you can find the example usage for org.springframework.aop TargetClassAware getTargetClass.

Prototype

@Nullable
Class<?> getTargetClass();

Source Link

Document

Return the target class behind the implementing object (typically a proxy configuration or an actual proxy).

Usage

From source file:fr.norad.jaxrs.oauth2.core.application.GrantTypeBasedResourceComparator.java

@Autowired
@OauthResource/*ww  w .  j  a  v a  2  s  .c  o  m*/
void initGrantToServiceClassMapping(List<TargetClassAware> services) {
    for (TargetClassAware service : services) {
        Grants annotation = AnnotationUtils.findAnnotation(service.getTargetClass(), Grants.class);
        if (annotation != null) {
            grantHandlerClasses.put(annotation.value(), service.getTargetClass());
        }
    }
}