001    /*****************************************************************************
002     * Copyright (C) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     * Original code by                                                          *
009     *****************************************************************************/
010    package org.picocontainer.doc.tutorial.simple;
011    
012    // START SNIPPET: girl
013    
014    public final class Girl {
015        final Boy boy;
016    
017        public Girl(Boy boy) {
018            this.boy = boy;
019        }
020    
021        public void kissSomeone() {
022            boy.kiss(this);
023        }
024    }
025    
026    // END SNIPPET: girl