001 /******************************************************************************* 002 * Copyright (C) PicoContainer Organization. All rights reserved. 003 * --------------------------------------------------------------------------- 004 * The software in this package is published under the terms of the BSD style 005 * license a copy of which has been included with this distribution in the 006 * LICENSE.txt file. 007 ******************************************************************************/ 008 package org.picocontainer.script; 009 010 import org.picocontainer.PicoContainer; 011 import org.picocontainer.script.ScriptedContainerBuilder; 012 013 /** 014 * @author Aslak Hellesøy 015 * @author Mauro Talevi 016 */ 017 public abstract class AbstractScriptedContainerBuilderTestCase { 018 019 protected PicoContainer buildContainer(ScriptedContainerBuilder builder, PicoContainer parentContainer, 020 Object assemblyScope) { 021 return buildContainer(builder, parentContainer, assemblyScope, true); 022 } 023 024 protected PicoContainer buildContainer(ScriptedContainerBuilder builder, PicoContainer parentContainer, 025 Object assemblyScope, boolean addChildToParent) { 026 return builder.buildContainer(parentContainer, assemblyScope, addChildToParent); 027 } 028 029 }