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.lifecycle;
011
012 import org.picocontainer.doc.tutorial.interfaces.Kissable;
013 import org.picocontainer.Startable;
014
015 // START SNIPPET: girl
016
017 public final class Girl implements Startable {
018 final Kissable kissable;
019
020 public Girl(Kissable kissable) {
021 this.kissable = kissable;
022 }
023
024 public void start() {
025 kissable.kiss(this);
026 }
027
028 public void stop() {
029 }
030 }
031
032 // END SNIPPET: girl