001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    package org.apache.commons.chain.impl;
018    
019    
020    /**
021     * Subclass of <code>ContextBase</code> to exercize the automatic
022     * delegation to properties of the <code>Context</code> class.
023     */
024    
025    public class TestContext extends ContextBase {
026    
027    
028        // Read-only property
029        private String readOnly = "readOnly";
030        public String getReadOnly() {
031            return (this.readOnly);
032        }
033    
034        // Read-write property
035        private String readWrite = "readWrite";
036        public String getReadWrite() {
037            return (this.readWrite);
038        }
039        public void setReadWrite(String readWrite) {
040            this.readWrite = readWrite;
041        }
042    
043        // Write-only property
044        private String writeOnly = "writeOnly";
045        public String returnWriteOnly() { // Not a JavaBeans getter
046            return (this.writeOnly);
047        }
048        public void setWriteOnly(String writeOnly) {
049            this.writeOnly = writeOnly;
050        }
051    
052    
053    }
054