public class ClassNameObjectGenerator extends BaseClassNameObjectGenerator implements ObjectGenerator<Object,String>
Constructor and Description |
---|
ClassNameObjectGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addTypeConverter(TypeConverter<?,?> typeConverter)
添加类型转换器
|
Object |
getObject(String varName,
String bean,
String className,
ClassLoader loader,
Context context)
从环境获取对象
|
Object |
getObjectArray(String varName,
String className,
ClassLoader loader,
Context context) |
Collection<Object> |
getObjectCollection(String collectionClassName,
ClassLoader loader) |
Collection<Object> |
getObjectCollection(String varName,
String collectionName,
String className,
ClassLoader loader,
Context context) |
void |
removeTypeConverter(TypeConverter<?,?> typeConverter)
移除类型转换器
|
addObjectAssembly, addTypeCreator, getClazz, getDeclaredFieldWithParent, getInstanceBySpringBean, getIntanceByCreator, getObjectAssembly, getObjectInstance, getObjName, getObjName, getPerpertyValue, getPerpertyValue, getPreName, getReallyPropertyName, implmentInterface, isNull, isSimpleType, removeObjectAssembly, removeTypeCreator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTypeCreator, removeTypeCreator
public Object getObject(String varName, String bean, String className, ClassLoader loader, Context context)
ObjectGenerator
getObject
in interface ObjectGenerator<Object,String>
context
- 用来获取对象的环境public Object getObjectArray(String varName, String className, ClassLoader loader, Context context)
getObjectArray
in interface ObjectGenerator<Object,String>
varName
- 变量名className
- 需要构建的类名loader
- 类加载器context
- tiny上下文public Collection<Object> getObjectCollection(String collectionClassName, ClassLoader loader)
public Collection<Object> getObjectCollection(String varName, String collectionName, String className, ClassLoader loader, Context context)
getObjectCollection
in interface ObjectGenerator<Object,String>
varName
- 变量名collectionName
- 集合名className
- 需要构建的类名loader
- 类加载器context
- tiny上下文public void addTypeConverter(TypeConverter<?,?> typeConverter)
ObjectGenerator
addTypeConverter
in interface ObjectGenerator<Object,String>
public void removeTypeConverter(TypeConverter<?,?> typeConverter)
ObjectGenerator
removeTypeConverter
in interface ObjectGenerator<Object,String>
Copyright © 2006–2018 TinyGroup. All rights reserved.