samples/livedb/src/org/apidesign/livedb/LiveDB.java
author Jaroslav Tulach <jtulach@netbeans.org>
Tue, 01 Jun 2010 12:08:47 +0200
changeset 355 d1e7424dc988
child 357 837370f791ba
permissions -rw-r--r--
Example of Annotation Processor that generates a db access class
     1 package org.apidesign.livedb;
     2 
     3 import java.lang.annotation.ElementType;
     4 import java.lang.annotation.Retention;
     5 import java.lang.annotation.RetentionPolicy;
     6 import java.lang.annotation.Target;
     7 
     8 /**
     9  *
    10  * @author Jaroslav Tulach <jtulach@netbeans.org>
    11  */
    12 @Target(ElementType.PACKAGE)
    13 @Retention(RetentionPolicy.SOURCE)
    14 public @interface LiveDB {
    15     String classname();
    16     String field();
    17 }