01: /*
02: * Copyright 1999-2004 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.apache.commons.chain.impl;
17:
18: /**
19: * Subclass of <code>ContextBase</code> to exercize the automatic
20: * delegation to properties of the <code>Context</code> class.
21: */
22:
23: public class TestContext extends ContextBase {
24:
25: // Read-only property
26: private String readOnly = "readOnly";
27:
28: public String getReadOnly() {
29: return (this .readOnly);
30: }
31:
32: // Read-write property
33: private String readWrite = "readWrite";
34:
35: public String getReadWrite() {
36: return (this .readWrite);
37: }
38:
39: public void setReadWrite(String readWrite) {
40: this .readWrite = readWrite;
41: }
42:
43: // Write-only property
44: private String writeOnly = "writeOnly";
45:
46: public String returnWriteOnly() { // Not a JavaBeans getter
47: return (this .writeOnly);
48: }
49:
50: public void setWriteOnly(String writeOnly) {
51: this.writeOnly = writeOnly;
52: }
53:
54: }
|