using java.
SOURCE:
AuthorInfo.java SOURCE:
WebSiteAnnotation.java SOURCE:
ShowAnnotationList.java OUTPUT:
@com.becbe.javase.annotations.WebSiteAnnotation(websiteInfo=http://www.becbe.com) @com.becbe.javase.annotations.AuthorInfo(name=becbe.com, desc=A unique Java Resource)
You can also read
- Introduction to Java Annotations
- How to write custom annotation
- Writing custom Annotation with RentionPolicy
- How read annotation at runtime using Java Reflection
- How to list out annotations used in a class using Java Reflection
- How to create custom annotation with default values
- How to create Marker Annotation using java
0 comments :
Post a Comment