net.kldp.beat.action
Class AnnotationFinder

java.lang.Object
  extended by net.kldp.beat.action.AnnotationFinder

public class AnnotationFinder
extends java.lang.Object

클래스에 정의된 모든 어노테이션을 검색합니다.


Field Summary
private  java.lang.Class<?> actionClass
           
private  java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotations
           
 
Constructor Summary
AnnotationFinder(java.lang.Class<?> actionClass)
           
 
Method Summary
 void find()
          모든 정의된 어노테이션들을 검색합니다.
private  void findAll()
           
private  java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> findAnnotation(java.lang.Class<?> clazz)
          현재 클래스의 어노테이션을 검색합니다.
 java.util.List<java.lang.annotation.Annotation> getAnnotations()
          검색된 모든 어노테이션을 리턴합니다.
static boolean isBeat(java.lang.annotation.Annotation annotation)
          어노테이션이 Beat어노테이션을 정의했는지 검사합니다.
private  void putAnnotation(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> map)
          중복되지 않는 어노테이션을 삽입합니다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotations

private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotations

actionClass

private java.lang.Class<?> actionClass
Constructor Detail

AnnotationFinder

public AnnotationFinder(java.lang.Class<?> actionClass)
Method Detail

find

public void find()
모든 정의된 어노테이션들을 검색합니다.

Parameters:
actionClass -

findAll

private void findAll()

putAnnotation

private void putAnnotation(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> map)
중복되지 않는 어노테이션을 삽입합니다.

Parameters:
map -

findAnnotation

private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> findAnnotation(java.lang.Class<?> clazz)
현재 클래스의 어노테이션을 검색합니다.

Parameters:
clazz -
Returns:

getAnnotations

public java.util.List<java.lang.annotation.Annotation> getAnnotations()
검색된 모든 어노테이션을 리턴합니다.

Returns:

isBeat

public static boolean isBeat(java.lang.annotation.Annotation annotation)
어노테이션이 Beat어노테이션을 정의했는지 검사합니다.

Parameters:
annotation -
Returns: