|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ibatis.reflection.factory.DefaultObjectFactory
public class DefaultObjectFactory
| Constructor Summary | |
|---|---|
DefaultObjectFactory()
|
|
| Method Summary | ||
|---|---|---|
|
create(Class<T> type)
Creates a new object with default constructor. |
|
|
create(Class<T> type,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs)
Creates a new object with the specified constructor and params. |
|
|
isCollection(Class<T> type)
Returns true if this object can have a set of other objects. |
|
protected Class<?> |
resolveInterface(Class<?> type)
|
|
void |
setProperties(Properties properties)
Sets configuration properties. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultObjectFactory()
| Method Detail |
|---|
public <T> T create(Class<T> type)
ObjectFactory
create in interface ObjectFactorytype - Object type
public <T> T create(Class<T> type,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs)
ObjectFactory
create in interface ObjectFactorytype - Object typeconstructorArgTypes - Constructor argument typesconstructorArgs - Constructor argument values
public void setProperties(Properties properties)
ObjectFactory
setProperties in interface ObjectFactoryproperties - configuration propertiesprotected Class<?> resolveInterface(Class<?> type)
public <T> boolean isCollection(Class<T> type)
ObjectFactory
isCollection in interface ObjectFactorytype - Object type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||