
cn.crane4j.annotation.ArgAutoOperate Maven / Gradle / Ivy
package cn.crane4j.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Declaration requires automatic processing of method input parameters, for example:
*
* @ArgAutoOperate({
* @AutoOperate(value = "list", type = A.class),
* @AutoOperate(value = "b", type = B.class)
* })
* public void doSomething(List list, B b) {
* // do something
* }
*
* or:
*
* @ArgAutoOperate
* public void doSomething(
* @AutoOperate(value = "list", type = A.class) List list,
* @AutoOperate(value = "b", type = B.class) B b) {
* // do something
* }
*
* NOTE:The annotation configuration on the parameter
* takes precedence over the annotation configuration on the method.
*
* @author huangchengxing
* @see AutoOperate
* @see cn.crane4j.core.support.aop.MethodArgumentAutoOperateSupport
*/
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ArgAutoOperate {
/**
* Operation configuration of parameters.
*
* @return configuration of parameters
*/
AutoOperate[] value() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy