0

I am reading a tutorial about stripes security that tells me to annotate like this

@RolesAllowed({
  "Administrator",
  "User if ${user eq message.folder.user}"
})

But I think I want to do something else in my own case, use another operator or such. I have googled but not succeeded. Where is the "manual" for annotation expressions.

I look forward to understand the explanation for:

${//some expression}

and also that if and eq operators, where is the "list"?

4

1 回答 1

1

占位符/表达式不是 Java 注释的一部分。"User if ${user eq message.folder.user}"从 Java 注释的角度来看,它只是一个字符串。在上述情况下,只有注释处理器(条纹?)知道如何解释${user eq message.folder.user}表达式。

于 2013-01-14T11:32:06.290 回答