001 package org.picocontainer.doc.introduction;
002
003 import org.picocontainer.Startable;
004
005
006 // START SNIPPET: class
007
008 public class Peeler implements Startable {
009 private final Peelable peelable;
010
011 public Peeler(Peelable peelable) {
012 this.peelable = peelable;
013 }
014
015 public void start() {
016 peelable.peel();
017 }
018
019 public void stop() {
020
021 }
022 }
023
024 // END SNIPPET: class