Class DefaultObjectFactory
- java.lang.Object
 - 
- org.apache.ibatis.reflection.factory.DefaultObjectFactory
 
 
- 
- All Implemented Interfaces:
 Serializable,ObjectFactory
public class DefaultObjectFactory extends Object implements ObjectFactory, Serializable
- Author:
 - Clinton Begin
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultObjectFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tcreate(Class<T> type)Creates a new object with default constructor.<T> Tcreate(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs)Creates a new object with the specified constructor and params.<T> booleanisCollection(Class<T> type)Returns true if this object can have a set of other objects.protected Class<?>resolveInterface(Class<?> type)- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.apache.ibatis.reflection.factory.ObjectFactory
setProperties 
 - 
 
 - 
 
- 
- 
Method Detail
- 
create
public <T> T create(Class<T> type)
Description copied from interface:ObjectFactoryCreates a new object with default constructor.- Specified by:
 createin interfaceObjectFactory- Type Parameters:
 T- the generic type- Parameters:
 type- Object type- Returns:
 - the t
 
 
- 
create
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs)
Description copied from interface:ObjectFactoryCreates a new object with the specified constructor and params.- Specified by:
 createin interfaceObjectFactory- Type Parameters:
 T- the generic type- Parameters:
 type- Object typeconstructorArgTypes- Constructor argument typesconstructorArgs- Constructor argument values- Returns:
 - the t
 
 
- 
isCollection
public <T> boolean isCollection(Class<T> type)
Description copied from interface:ObjectFactoryReturns true if this object can have a set of other objects. It's main purpose is to support non-java.util.Collection objects like Scala collections.- Specified by:
 isCollectionin interfaceObjectFactory- Type Parameters:
 T- the generic type- Parameters:
 type- Object type- Returns:
 - whether it is a collection or not
 
 
 - 
 
 -