silentbalanceyh/vertx-zero

View on GitHub
vertx-gaia/vertx-co/src/main/environment/io/vertx/up/annotations/SessionData.java

Summary

Maintainability
A
0 mins
Test Coverage
package io.vertx.up.annotations;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface SessionData {
    String value();

    /**
     * If the return type is JsonObject, you can extract one field to store into session
     *
     * @return stored key in session
     */
    String field() default "";
}