Add a default annotation class visitor implementation
commitcb7a7516c4a17556805504a668c3de0d418dca9c
authorImran M Yousuf <imyousuf@smartitengineering.com>
Tue, 28 Apr 2009 09:33:35 +0000 (28 15:33 +0600)
committerImran M Yousuf <imyousuf@smartitengineering.com>
Tue, 28 Apr 2009 09:33:35 +0000 (28 15:33 +0600)
tree4bea4d2ff170eabbebf039021aa58cb0ae7e018e
parent0275ba7a65dde58486acf5f0fa0f203c1d579e90
Add a default annotation class visitor implementation

It is added to reduce the code required for getting classes with desired
annotations. It will use callback pattern to invoke handler when class is
found matching annotation name pattern. Appropriate test cases are added for
it.

Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
pom.xml
simple-util/pom.xml
simple-util/src/main/java/com/smartitengineering/util/simple/reflection/AnnotationConfig.java [new file with mode: 0644]
simple-util/src/main/java/com/smartitengineering/util/simple/reflection/ClassAnnotationVisitorImpl.java [new file with mode: 0644]
simple-util/src/main/java/com/smartitengineering/util/simple/reflection/Config.java [new file with mode: 0644]
simple-util/src/main/java/com/smartitengineering/util/simple/reflection/VisitCallback.java [copied from simple-util/src/test/java/com/smartitengineering/util/simple/data/TestClass.java with 84% similarity]
simple-util/src/test/java/com/smartitengineering/util/simple/ClassAnnotationVisitorImplTest.java [new file with mode: 0644]
simple-util/src/test/java/com/smartitengineering/util/simple/data/TestClass.java