ReturnType
- ParaType
- public interface ObjectGenerator<ReturnType,ParaType>
Modifier and Type | Method and Description |
---|---|
void |
addTypeConverter(TypeConverter<?,?> typeConverter)
添加类型转换器
|
void |
addTypeCreator(TypeCreator<?> typeCreator)
添加类型创建器
|
ReturnType |
getObject(String varName,
String bean,
String className,
ClassLoader loader,
Context context)
从环境获取对象
|
Object |
getObjectArray(String varName,
String className,
ClassLoader loader,
Context context) |
Collection<ReturnType> |
getObjectCollection(String varName,
String collectionName,
String className,
ClassLoader loader,
Context context) |
void |
removeTypeConverter(TypeConverter<?,?> typeConverter)
移除类型转换器
|
void |
removeTypeCreator(TypeCreator<?> typeCreator)
移除类型创建器
|
ReturnType getObject(String varName, String bean, String className, ClassLoader loader, Context context)
paraType
- 用来生成对象的参数context
- 用来获取对象的环境Collection<ReturnType> getObjectCollection(String varName, String collectionName, String className, ClassLoader loader, Context context)
varName
- 变量名collectionName
- 集合名className
- 需要构建的类名loader
- 类加载器context
- tiny上下文Object getObjectArray(String varName, String className, ClassLoader loader, Context context)
varName
- 变量名className
- 需要构建的类名loader
- 类加载器context
- tiny上下文void addTypeConverter(TypeConverter<?,?> typeConverter)
typeConverter
- void removeTypeConverter(TypeConverter<?,?> typeConverter)
typeConverter
- void addTypeCreator(TypeCreator<?> typeCreator)
typeCreator
- void removeTypeCreator(TypeCreator<?> typeCreator)
typeCreator
- Copyright © 2006–2018 TinyGroup. All rights reserved.