Class 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.
AO Industries, Inc.
  • Constructor Details

    • AutoObjectFactory

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