org.kuali.rice.kns.util.spring
Class AutoPopulatingList.ReflectiveElementFactory

java.lang.Object
  extended by org.kuali.rice.kns.util.spring.AutoPopulatingList.ReflectiveElementFactory
All Implemented Interfaces:
Serializable, AutoPopulatingList.ElementFactory
Enclosing class:
AutoPopulatingList

private static class AutoPopulatingList.ReflectiveElementFactory
extends Object
implements AutoPopulatingList.ElementFactory, Serializable

Reflective implementation of the ElementFactory interface, using Class.newInstance() on a given element class.

See Also:
Class.newInstance()

Field Summary
private  Class elementClass
           
 
Constructor Summary
AutoPopulatingList.ReflectiveElementFactory(Class elementClass)
           
 
Method Summary
 Object createElement(int index)
          Create the element for the supplied index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementClass

private final Class elementClass
Constructor Detail

AutoPopulatingList.ReflectiveElementFactory

public AutoPopulatingList.ReflectiveElementFactory(Class elementClass)
Method Detail

createElement

public Object createElement(int index)
Description copied from interface: AutoPopulatingList.ElementFactory
Create the element for the supplied index.

Specified by:
createElement in interface AutoPopulatingList.ElementFactory
Returns:
the element object


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.