public interface BeanWrapperFactory
| Modifier and Type | Method and Description |
|---|---|
BeanInstanceBuilder |
getBeanInstanceBuilder()
Obtains the builder that will be used to create bean instances every time a bean instantiation is needed.
|
JuffrouBeanWrapper |
getBeanWrapper(Class clazz)
Construct a bean wrapper around a class.
|
JuffrouBeanWrapper |
getBeanWrapper(Object instance)
Construct a bean wrapper around an existing bean instance.
|
BeanWrapperContext |
getBeanWrapperContext(Class clazz)
Retrieves a BeanWrapperContext for java bean class.
|
BeanWrapperContext |
getBeanWrapperContext(Class clazz,
Type... types)
Retrieves a BeanWrapperContext for a parameterized (generic) java bean class.
|
BeanWrapperContext getBeanWrapperContext(Class clazz)
If the BeanWrapperContext is not in cache then creates a new one.
clazz - the bean class to inspectBeanWrapperContext getBeanWrapperContext(Class clazz, Type... types)
If the BeanWrapperContext is not in cache then creates a new one.
clazz - the generic bean class to inspect.types - the parameters that defined the generic bean class.JuffrouBeanWrapper getBeanWrapper(Class clazz)
Bean instances will be instances of that class and will be created only when necessary.
Try to use a cached BeanWrapperContext to save introspection time.
clazz - class to instantiate the wrapped beanJuffrouBeanWrapper.setValue(String, Object)
or JuffrouBeanWrapper.getBean()JuffrouBeanWrapper getBeanWrapper(Object instance)
Will try to use a cached BeanWrapperContext to save introspection time.
instance - the bean object to be wrappedBeanInstanceBuilder getBeanInstanceBuilder()
Copyright © 2011–2020 Juffrou. All rights reserved.