1
2 package inklings.jgatms.context;
3
4 import org.apache.commons.chain.impl.ContextBase;
5
6 import inklings.jgatms.bean.Member;
7 import inklings.jgatms.ContextKeys;
8
9 /***
10 * Provides easy access to data that are specific to JGATMS.
11 *
12 * The methods in this class simply pass information into and
13 * out of the base context object.
14 */
15 public class JgatmsContext extends ContextBase {
16
17 /***
18 * Returns the Member bean if it is available.
19 */
20 public Member getMember() {
21 return (Member) get(ContextKeys.MEMBER_KEY);
22 }
23
24 /***
25 * Sets the Member bean into context.
26 */
27 public void setMember(Member member) {
28 put(ContextKeys.MEMBER_KEY, member);
29 }
30
31 /***
32 * Returns the Dispatch code.
33 */
34 public String getDispatch() {
35 return (String) get(ContextKeys.DISPATCH_KEY);
36 }
37
38 /***
39 * Sets the dispatch code.
40 */
41 public void setDispatch(String dispatch) {
42 put(ContextKeys.DISPATCH_KEY, dispatch);
43 }
44 }
This page was automatically generated by Maven