KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > script > xml > TestComponentAdapter


1 /*****************************************************************************
2  * Copyright (C) NanoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by Aslak Hellesoy and Paul Hammant *
9  *****************************************************************************/

10 package org.nanocontainer.script.xml;
11
12
13 import org.picocontainer.PicoContainer;
14 import org.picocontainer.defaults.AbstractComponentAdapter;
15
16 /**
17  * component adapter to test script instantiation.
18  */

19 public class TestComponentAdapter extends AbstractComponentAdapter {
20
21     String JavaDoc foo;
22     String JavaDoc blurge;
23     int bar;
24
25     public TestComponentAdapter(String JavaDoc foo, int bar, String JavaDoc blurge) {
26         super(TestComponentAdapter.class, TestComponentAdapter.class);
27         this.foo = foo;
28         this.bar = bar;
29         this.blurge = blurge;
30     }
31
32
33     public void verify(PicoContainer pico) {
34     }
35
36     public Object JavaDoc getComponentInstance(PicoContainer pico) {
37         return null;
38     }
39 }
40
41
42
43
44
Popular Tags