Archive for the ‘Create New Java Annotation’ Category

Create New Java Annotation

July 18, 2009
import java.lang.annotation.Documented;

import java.lang.annotation.ElementType;

import java.lang.annotation.Inherited;

import java.lang.annotation.Retention;

import java.lang.annotation.RetentionPolicy;

import java.lang.annotation.Target;

@Documented

@Retention(RetentionPolicy.RUNTIME)

@Target {ElementType.TYPE, ElementType.METHOD,

ElementType.CONSTRUCTOR,

ElementType.ANNOTATION_TYPE,

ElementType.PACKAGE,

ElementType.FIELD,

ElementType.LOCAL_VARIABLE})

@Inherited

public @interface Unfinished

{

public enum Priority { LOW, MEDIUM, HIGH }

String value();

String[] changedBy() default “”;

String[] lastChangedBy() default “”;

Priority priority() default Priority.MEDIUM;

String createdBy() default “prabir karmakar”;

String lastChanged() default “01/01/2009”;

}
Advertisements