View Javadoc
1   package info.ejava.examples.ejb.cdisales.bo;
2   
3   import java.io.Serializable;
4   
5   import javax.enterprise.inject.Alternative;
6   
7   @Alternative
8   public class CurrentUser implements Serializable {
9       private Member member;
10  
11      public void setMember(Member member) {
12          this.member = member;
13      }
14      
15      public String getName() {
16          return member==null ? null : member.getName();
17      }
18      
19      public String getLogin() {
20          return member==null ? null : member.getLogin();
21      }
22  
23      public Member getMember() {
24          return member;
25      }
26  }