001 /***************************************************************************** 002 * Copyright (C) PicoContainer 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.picocontainer.script.xml; 011 012 013 import org.picocontainer.PicoContainer; 014 import org.picocontainer.adapters.AbstractAdapter; 015 016 import java.lang.reflect.Type; 017 018 /** 019 * component adapter to test script instantiation. 020 */ 021 @SuppressWarnings({ "serial", "unchecked" }) 022 public final class TestAdapter extends AbstractAdapter { 023 024 final String foo; 025 final String blurge; 026 final int bar; 027 028 public TestAdapter(String foo, int bar, String blurge) { 029 super(TestAdapter.class, TestAdapter.class); 030 this.foo = foo; 031 this.bar = bar; 032 this.blurge = blurge; 033 } 034 035 036 public void verify(PicoContainer pico) { 037 } 038 039 040 public Object getComponentInstance(PicoContainer pico) { 041 return null; 042 } 043 044 public Object getComponentInstance(PicoContainer pico, Type into) { 045 return null; 046 } 047 048 public String getDescriptor() { 049 return null; 050 } 051 } 052 053 054 055