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

com.datastax.util.log.Log Maven / Gradle / Ivy

The newest version!
package com.datastax.util.log;

import java.lang.annotation.*;

/**
 *create by wuzb 2018-07-07
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /** 要执行的具体操作比如:添加用户 **/
    public OperationTypeEnum operationType() default OperationTypeEnum.查询;

    /** 日志的简介,根据不同的请求作出不同的描述 ....
     * 可以使用{}对进行参数的获取,如{0}表示获取第一个参数的toString值     *
     * {0.1}获取数组的第一个对象toString值
     * {0.all}遍历数组所有对象,获取toString值
     * {1.name}调用第二个对象的getName()获取返回对象的toString值**/
    public String operationDescription() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy