All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.cloud.stateful.localization.Localize Maven / Gradle / Ivy

The newest version!
package com.minlia.cloud.stateful.localization;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import com.minlia.cloud.stateful.localization.Constants.LanguageTypes;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Created by will on 8/22/17.
 */
@Target({FIELD})
@Retention(RUNTIME)
@Inherited
public @interface Localize {

  String locale() default "en_US";

  String message() default "";

  /**
   * 国际化译文编码
   * @return String of api code
   */
  String code() default "";

  LanguageTypes type() default LanguageTypes.Message;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy