org.nanocontainer.script.xml
Class BeanComponentInstanceFactory

java.lang.Object
  extended byorg.nanocontainer.script.xml.BeanComponentInstanceFactory
All Implemented Interfaces:
XMLComponentInstanceFactory

public class BeanComponentInstanceFactory
extends java.lang.Object
implements XMLComponentInstanceFactory

Implementation of XMLComponentInstanceFactory that uses BeanPropertyComponentAdapter to create instances from DOM elements.

Author:
Paul Hammant, Marcos Tarruella, Mauro Talevi

Constructor Summary
BeanComponentInstanceFactory()
           
 
Method Summary
 java.lang.Object makeInstance(org.picocontainer.PicoContainer pico, org.w3c.dom.Element element, java.lang.ClassLoader classLoader)
          Creates an instance of an Object from a DOM Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanComponentInstanceFactory

public BeanComponentInstanceFactory()
Method Detail

makeInstance

public java.lang.Object makeInstance(org.picocontainer.PicoContainer pico,
                                     org.w3c.dom.Element element,
                                     java.lang.ClassLoader classLoader)
                              throws java.lang.ClassNotFoundException,
                                     java.net.MalformedURLException
Description copied from interface: XMLComponentInstanceFactory
Creates an instance of an Object from a DOM Element

Specified by:
makeInstance in interface XMLComponentInstanceFactory
Parameters:
pico -
element - the DOM Element
classLoader -
Returns:
An Object instance
Throws:
java.lang.ClassNotFoundException
java.net.MalformedURLException


Copyright © 2003-2007 Codehaus. All Rights Reserved.