org.kuali.rice.kns.util.spring
Class AutoPopulatingList.ReflectiveElementFactory
java.lang.Object
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()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elementClass
private final Class elementClass
AutoPopulatingList.ReflectiveElementFactory
public AutoPopulatingList.ReflectiveElementFactory(Class elementClass)
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.