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.introduction;
011    
012    import org.picocontainer.Startable;
013    
014    
015    // START SNIPPET: class
016    
017    public class Peeler implements Startable {
018        private final Peelable peelable;
019    
020        public Peeler(Peelable peelable) {
021            this.peelable = peelable;
022        }
023    
024        public void start() {
025            peelable.peel();
026        }
027    
028        public void stop() {
029    
030        }
031    }
032    
033    // END SNIPPET: class