-open http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/unwraps.html
-create class:
package com.acme; @SessionScoped public class PermissionManager { Permission permission; void setPermission(Permission permission) { this.permission=permission; } @Unwraps //@Current Permission getPermission() { return this.permission; } }
-create class:
package com.acme; @SessionScoped class SecurityManager { @Inject //@Current Permission permission; boolean checkAdminPermission() { return permission.getName().equals("admin"); } }
-make sure that "@Current" is commented out
-open hyperlink window on @Current in SecurityManager
=> popup shows 3 entries for PM.getPermission() but only one should be shown instead
see attached screenshot