View Javadoc

1   package de.tivsource.ejb3plugin;
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    * Interface für die EJB Injection.
10   *
11   * @author Marc Michele
12   *
13   */
14  @Retention(RetentionPolicy.RUNTIME)
15  @Target({ ElementType.FIELD })
16  public @interface InjectEJB {
17  	
18  	/**
19  	 * Name der EJB.
20  	 * @return
21  	 */
22  	String name();
23  
24  	/**
25  	 * Name der Anwendung.
26  	 * @return
27  	 */
28  	String appname() default "";
29  
30  	/**
31  	 * Lokal Ja/Nein.
32  	 * @return
33  	 */
34  	boolean local() default true;
35  
36  	/**
37  	 * Remote Ja/Nein.
38  	 * @return
39  	 */
40  	boolean remote() default false;
41  
42  }// Ende interface