1 package org.picocontainer.doc.introduction;2 3 import org.picocontainer.Startable;4 5 6 // START SNIPPET: class7 8 public class Peeler implements Startable {9 private final Peelable peelable;10 11 public Peeler(Peelable peelable) {12 this.peelable = peelable;13 }14 15 public void start() {16 peelable.peel();17 }18 19 public void stop() {20 21 }22 }23 24 // END SNIPPET: class25