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 */
017package org.apache.commons.chain.impl;
018
019/**
020 * Subclass of {@code ContextBase} to exercise the automatic
021 * delegation to properties of the {@code Context} class.
022 */
023public class TestContext extends ContextBase {
024    private static final long serialVersionUID = -582126541014253603L;
025
026    /**
027     * The Default-Constructor for this class.
028     */
029    public TestContext() {
030    }
031
032    /**
033     * Read-only property
034     */
035    private String readOnly = "readOnly";
036    public String getReadOnly() {
037        return this.readOnly;
038    }
039
040    /**
041     * Read-write property
042     */
043    private String readWrite = "readWrite";
044    public String getReadWrite() {
045        return this.readWrite;
046    }
047    public void setReadWrite(String readWrite) {
048        this.readWrite = readWrite;
049    }
050
051    /**
052     * Write-only property
053     */
054    private String writeOnly = "writeOnly";
055    public String returnWriteOnly() { // Not a JavaBeans getter
056        return this.writeOnly;
057    }
058    public void setWriteOnly(String writeOnly) {
059        this.writeOnly = writeOnly;
060    }
061}