001 /*****************************************************************************
002 * Copyright (C) NanoContainer 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 Aslak Hellesoy and Paul Hammant *
009 *****************************************************************************/
010 package org.nanocontainer.script.xml;
011
012
013 import org.picocontainer.PicoContainer;
014 import org.picocontainer.defaults.AbstractComponentAdapter;
015
016 /**
017 * component adapter to test script instantiation.
018 */
019 public class TestComponentAdapter extends AbstractComponentAdapter {
020
021 String foo;
022 String blurge;
023 int bar;
024
025 public TestComponentAdapter(String foo, int bar, String blurge) {
026 super(TestComponentAdapter.class, TestComponentAdapter.class);
027 this.foo = foo;
028 this.bar = bar;
029 this.blurge = blurge;
030 }
031
032
033 public void verify(PicoContainer pico) {
034 }
035
036 public Object getComponentInstance(PicoContainer pico) {
037 return null;
038 }
039 }
040
041
042
043