ScopedBusiness.java
1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package scope;
import javax.inject.Inject;
public class ScopedBusiness {
@Inject
private RequestScopedBean requestScopedBean;
@Inject
private ViewScopedBean viewScopedBean;
@Inject
private SessionScopedBean sessionScopedBean;
@Inject
private ConversationScopedBean conversationScopedBean;
public String getValueFromRequest(){
return requestScopedBean.getValue();
}
public void setValueToRequest(String value){
requestScopedBean.setValue(value);
}
public String getValueFromSession(){
return sessionScopedBean.getValue();
}
public void setValueToSession(String value){
sessionScopedBean.setValue(value);
}
public String getValueFromView(){
return viewScopedBean.getValue();
}
public void setValueToView(String value){
viewScopedBean.setValue(value);
}
public String getValueFromConversation(){
return conversationScopedBean.getValue();
}
public void setValueToConversation(String value){
conversationScopedBean.setValue(value);
}
}