Annotation Type LoggedIn
-
@Target({TYPE,METHOD,PARAMETER}) @Retention(RUNTIME) public @interface LoggedIn
Annotation to mark the method parameter with that shall get theUserAccount
of the currently logged in user injected. The method parameter needs to be either of typeOptional<UserAccount>
(for methods that can support non-authenticated access) orUserAccount
. In the latter case aServletRequestBindingException
will be thrown if noUserAccount
could have been obtained in the first place.- Author:
- Paul Henke, Oliver Gierke
- See Also:
LoggedInUserAccountArgumentResolver