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

com.ideaaedi.commonds.env.RequiredEnv Maven / Gradle / Ivy

The newest version!
package com.ideaaedi.commonds.env;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标明被标注方法(或类)运行时需要的环境
 * 

* 注:如果环境不符合要求,可能会报错、或部分功能失效、或者其它情况 *

* * @author JustryDeng * @since 2100.9.4 */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface RequiredEnv { String DESCRIPTION = "This annotation is used to indicate the runtime environment required to use the current " + "method (or class)."; /** * 同 {@link RequiredEnv#in()} */ Unit[] value() default {@Unit(Env.NONE)}; /** * 语义同sql中的 in */ Unit[] in() default {}; /** * 语义同sql中的 or */ Unit[] or() default {}; /** * 语义同sql中的 and */ Unit[] and() default {}; /** * 语义同sql中的 not in */ Unit[] notIn() default {}; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy