java.lang.Object
com.gpudb.TypeObjectMap.ClassFactory<T>
Type Parameters:
T - the class that the factory creates instances ofAll Implemented Interfaces:
Enclosing class:
public static final class TypeObjectMap.ClassFactory<T> extends Object implements TypeObjectMap.Factory<T>
A factory that uses reflection to create new instances of the specified class. The class must have a public, parameterless constructor.
Constructor Summary
ConstructorsConstructorDescriptionClassFactory(Class<?> objectClass) Creates aTypeObjectMap.ClassFactoryfor the specified class.
Constructor Details
ClassFactory
Creates aTypeObjectMap.ClassFactoryfor the specified class. The class must have a public, parameterless constructor.Parameters:objectClass- the class that the factory creates instances of
Method Details
newInstance
Creates a new object instance.Specified by:newInstancein interfaceTypeObjectMap.Factory<T>Returns:the new instanceThrows:GPUdbRuntimeException- if an instance could not be created