保存调用者的当前键访问权限(保存于 AMR 中)。
Save the caller's current key access rights (held in the AMR).
这个简单示例可检查在编写新数据之前当前键中是否已经有一个项,以避免因存在具有此键的数据而发生的异常。
This trivial example checks whether an entry already exists with the current key before writing new data, in order to avoid an exception that would occur if data with this key already existed.
然后,bean 方法中的 RequestContext 对象可以获得当前范围的键 —— 例如,通过 methodY()。
The RequestContext object inside the bean method can then obtain the keys of current scopes -- through methodY(), for instance.
应用推荐