Annotation Interface SessionValue


@Documented @Retention(RUNTIME) @Target({PARAMETER,METHOD}) @Bindable @Inherited public @interface SessionValue
Used to bind value from a Session.
Since:
1.0
Author:
Graeme Rocher
  • Element Details

    • value

      @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="value") String value
      Returns:
      The name of value from the session
      Default:
      ""
    • defaultValue

      @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="defaultValue") String defaultValue
      Returns:
      The default value if not found
      See Also:
      • Bindable.defaultValue()
      Default:
      ""