1 package net.trajano.twiff.sample; 2 3 import net.trajano.twiff.container.ContainerBuilder; 4 import net.trajano.twiff.sample.component.NumberToGuess; 5 import org.picocontainer.MutablePicoContainer; 6 7 /*** 8 * This is a sample container builder. Registers 9 * {@link net.trajano.twiff.sample.component.NumberToGuess} in the session level 10 * container. 11 * 12 * @author Archimedes Trajano 13 */ 14 public final class SampleContainerBuilder implements ContainerBuilder { 15 /*** 16 * @see net.trajano.twiff.container.ContainerBuilder#buildApplicationLevelContainer(org.picocontainer.MutablePicoContainer) 17 */ 18 public void buildApplicationLevelContainer(final MutablePicoContainer container) { 19 } 20 21 /*** 22 * @see net.trajano.twiff.container.ContainerBuilder#buildRequestLevelContainer(org.picocontainer.MutablePicoContainer) 23 */ 24 public void buildRequestLevelContainer(final MutablePicoContainer container) { 25 } 26 27 /*** 28 * @see net.trajano.twiff.container.ContainerBuilder#buildSessionLevelContainer(org.picocontainer.MutablePicoContainer) 29 */ 30 public void buildSessionLevelContainer(final MutablePicoContainer container) { 31 container.registerComponentImplementation(NumberToGuess.class); 32 } 33 }