KickJava   Java API By Example, From Geeks To Geeks.

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


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
11 package org.nanocontainer.script.xml;
12
13 import org.picocontainer.PicoContainer;
14 import org.w3c.dom.Element JavaDoc;
15
16 import java.net.MalformedURLException JavaDoc;
17
18 /**
19  * Factory that creates instances from DOM Elements
20  *
21  * @author Paul Hammant
22  * @author Marcos Tarruella
23  */

24 public interface XMLComponentInstanceFactory {
25     /**
26      * Creates an instance of an Object from a DOM Element
27      *
28      * @param container
29      * @param element the DOM Element
30      * @param classLoader
31      * @return An Object instance
32      * @throws ClassNotFoundException
33      */

34     Object JavaDoc makeInstance(PicoContainer container, Element JavaDoc element, ClassLoader JavaDoc classLoader) throws ClassNotFoundException JavaDoc, MalformedURLException JavaDoc;
35 }
36
Popular Tags