Package io.micronaut.session.annotation
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
-
Optional Element Summary
-
Element Details
-
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:
- ""
-