1 /***************************************************************************** 2 * Copyright (C) NanoContainer Organization. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 * * 8 * Original code by Joerg Schaibe * 9 *****************************************************************************/ 10 11 package org.picocontainer.testmodel; 12 13 import java.io.Serializable; 14 15 16 /** 17 * Method compatible Touchable. 18 * 19 * @author Jörg Schaible 20 */ 21 public class CompatibleTouchable implements Serializable { 22 private boolean wasTouched; 23 24 public void touch() { 25 wasTouched = true; 26 } 27 28 public boolean wasTouched() { 29 return wasTouched; 30 } 31 }