ar.com.jiji.kaya.spring
Class SimpleDaoInstantiator

java.lang.Object
  extended by ar.com.jiji.kaya.spring.SimpleDaoInstantiator
All Implemented Interfaces:
DaoInstantiator

public class SimpleDaoInstantiator
extends java.lang.Object
implements DaoInstantiator

Una implementacion de DaoInstantiator que crea objetos con refleccion. Chequea que la clase implemente la interfaz y luego crea un objeto de esa clase.

Author:
lparra

Constructor Summary
SimpleDaoInstantiator()
           
 
Method Summary
 java.lang.Object instantiate(java.lang.String clazzImpl, java.lang.String interfaceClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDaoInstantiator

public SimpleDaoInstantiator()
Method Detail

instantiate

public java.lang.Object instantiate(java.lang.String clazzImpl,
                                    java.lang.String interfaceClass)
                             throws java.lang.ClassNotFoundException,
                                    KayaException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Specified by:
instantiate in interface DaoInstantiator
Throws:
java.lang.ClassNotFoundException
KayaException
java.lang.InstantiationException
java.lang.IllegalAccessException


Copyright © 2006 Kaya. All Rights Reserved.