开发者

How to use Restrict annotation and tag properly

开发者 https://www.devze.com 2023-02-08 18:44 出处:网络
I would like to use @Restrict in seam application. One of my scenario contains a series of 开发者_运维问答actions. Do i need to restrict each and every action or only the starting action? All the acti

I would like to use @Restrict in seam application. One of my scenario contains a series of 开发者_运维问答actions. Do i need to restrict each and every action or only the starting action? All the actions except first is invoked from first action.


If they are private methods then you don't need to restrict them. However, if they are public methods, you should restrict them, because it is possible to call methods from the parameter.

If you annotate the class with the @Restrict annotation, then all the methods will be restricted.

0

精彩评论

暂无评论...
验证码 换一张
取 消