I used a lot of annotations in java, but I never wrote. I read several guides and I'm really confused.
They use annotations, such as meta-information, such as names, age, etc. This is really confusing because I want to do something else
http://www.developer.com/java/other/article.php/3556176/An-Introduction-to-Java-Annotations.htm
I want to control function calls.
eg
@Permission(user) public static void account(){ ... }
Thus, my functions are called only if the user has permission, otherwise the user must be redirected to the login page.
I could not find any information, maybe I'm using the wrong keyword?
I hope you can find out
Thanks.
source share