类 DefaultObjectFactory
java.lang.Object
cn.myafx.data.factory.DefaultObjectFactory
- 所有已实现的接口:
ObjectFactory,Serializable
- 作者:
- Clinton Begin
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> TCreates a new object with default constructor.<T> TCreates 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) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.myafx.data.factory.ObjectFactory
setProperties
-
构造器详细资料
-
DefaultObjectFactory
public DefaultObjectFactory()
-
-
方法详细资料
-
create
从接口复制的说明:ObjectFactoryCreates a new object with default constructor.- 指定者:
create在接口中ObjectFactory- 类型参数:
T- the generic type- 参数:
type- Object type- 返回:
- the t
- 抛出:
Exception
-
create
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) throws Exception 从接口复制的说明:ObjectFactoryCreates a new object with the specified constructor and params.- 指定者:
create在接口中ObjectFactory- 类型参数:
T- the generic type- 参数:
type- Object typeconstructorArgTypes- Constructor argument typesconstructorArgs- Constructor argument values- 返回:
- the t
- 抛出:
Exception
-
resolveInterface
-
isCollection
从接口复制的说明: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.- 指定者:
isCollection在接口中ObjectFactory- 类型参数:
T- the generic type- 参数:
type- Object type- 返回:
- whether it is a collection or not
-