KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > testmodel > DecoratedTouchable


1 /*****************************************************************************
2  * Copyright (C) PicoContainer 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 *
9  *****************************************************************************/

10 package tests.jfun.yan.testmodel;
11
12 /**
13  * @author Thomas Heller
14  * @version $Revision: 1.1 $
15  */

16 public class DecoratedTouchable implements Touchable {
17     private final Touchable delegate;
18
19     public DecoratedTouchable(Touchable delegate) {
20         this.delegate = delegate;
21     }
22
23     public void touch() {
24         delegate.touch();
25     }
26 }
27
Popular Tags