public interface ObjectFactory
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> type)
Creates a new object with default constructor.
|
<T> T |
create(Class<T> type,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs)
Creates a new object with the specified constructor and params.
|
<T> boolean |
isCollection(Class<T> type)
Returns true if this object can have a set of other objects.
|
default void |
setProperties(Properties properties)
Sets configuration properties.
|
default void setProperties(Properties properties)
properties - configuration properties<T> T create(Class<T> type)
T - the generic typetype - Object type<T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs)
T - the generic typetype - Object typeconstructorArgTypes - Constructor argument typesconstructorArgs - Constructor argument values<T> boolean isCollection(Class<T> type)
T - the generic typetype - Object typeCopyright © 2009–2021 MyBatis.org. All rights reserved.