Class AutoObjectFactory<T>

java.lang.Object
com.aoapps.dbc.AutoObjectFactory<T>
All Implemented Interfaces:
ObjectFactory<T>, ObjectFactoryE<T,RuntimeException>

public class AutoObjectFactory<T> extends Object implements ObjectFactory<T>
Creates instances of objects by using reflection and passing-in the parameters in the same order as the matching constructor. For unknown classes, will try to find any valueOf(int) or valueOf(String) methods to create the object instance.
Author:
AO Industries, Inc.
  • Constructor Details

    • AutoObjectFactory

      public AutoObjectFactory(Class<? extends T> clazz, Object... prefixParams)
  • Method Details