View Javadoc
1   package org.bitbucket.jrsofty.parser.logging.api;
2   
3   import static java.lang.annotation.ElementType.FIELD;
4   import static java.lang.annotation.RetentionPolicy.RUNTIME;
5   
6   import java.lang.annotation.Documented;
7   import java.lang.annotation.Inherited;
8   import java.lang.annotation.Retention;
9   import java.lang.annotation.Target;
10  
11  /**
12   * This annotation is used for mapping fields of your class to a specific formatting token and token
13   * matcher.
14   * 
15   * @author jrsofty
16   *
17   */
18  @Documented
19  @Retention(RUNTIME)
20  @Target(FIELD)
21  @Inherited
22  public @interface LogElementMapping {
23    /**
24     * Returns the logToken value.
25     *
26     * @return logToken value as String.
27     */
28    String logToken();
29  }