public class ReflectAnnotationReader extends Object implements MetadataReader
Constructor and Description |
---|
ReflectAnnotationReader() |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation(Class<A> annType,
Class<?> cls) |
<A extends Annotation> |
getAnnotation(Class<A> annType,
Method m) |
Annotation[] |
getAnnotations(Class<?> cls) |
Annotation[] |
getAnnotations(Method m) |
Annotation[][] |
getParameterAnnotations(Method method) |
void |
getProperties(Map<String,Object> prop,
Class<?> cls) |
void |
getProperties(Map<String,Object> prop,
Method method) |
void |
getProperties(Map<String,Object> prop,
Method method,
int pos) |
public Annotation[] getAnnotations(Method m)
getAnnotations
in interface MetadataReader
public Annotation[][] getParameterAnnotations(Method method)
getParameterAnnotations
in interface MetadataReader
public <A extends Annotation> A getAnnotation(Class<A> annType, Method m)
getAnnotation
in interface MetadataReader
public <A extends Annotation> A getAnnotation(Class<A> annType, Class<?> cls)
getAnnotation
in interface MetadataReader
public Annotation[] getAnnotations(Class<?> cls)
getAnnotations
in interface MetadataReader
public void getProperties(Map<String,Object> prop, Class<?> cls)
getProperties
in interface MetadataReader
public void getProperties(Map<String,Object> prop, Method method)
getProperties
in interface MetadataReader
public void getProperties(Map<String,Object> prop, Method method, int pos)
getProperties
in interface MetadataReader
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.