KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > RequireConnection


1 package example;
2
3 import java.lang.annotation.Retention JavaDoc;
4 import java.lang.annotation.RetentionPolicy JavaDoc;
5 import java.lang.annotation.Target JavaDoc;
6 import java.lang.annotation.ElementType JavaDoc;
7
8 /**
9  * The require connection annotation.
10  */

11 @Target JavaDoc(ElementType.METHOD)
12 @Retention JavaDoc(RetentionPolicy.RUNTIME)
13 public @interface RequireConnection {
14   /**
15    * The jndi name of the data source.
16    */

17   String JavaDoc value();
18 }
19
Popular Tags