Package org.beanio.internal.config
Class BeanConfig<T>
- java.lang.Object
-
- org.beanio.internal.config.BeanConfig<T>
-
- Direct Known Subclasses:
TypeHandlerConfig
public class BeanConfig<T> extends java.lang.ObjectStores bean information. ABeanobject is used to instantiate configurable components such as a type handler, record reader factory or record writer factory.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BeanConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()Returns the fully qualified class name of the bean.TgetInstance()Returns the configured instance of this bean.java.util.PropertiesgetProperties()Returns bean properties.voidsetClassName(java.lang.String className)Sets the fully qualified class name of the bean.voidsetInstance(T instance)Sets the configured instance of this bean.voidsetProperties(java.util.Properties properties)Sets bean properties.
-
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Returns the fully qualified class name of the bean.- Returns:
- the bean class name
-
setClassName
public void setClassName(java.lang.String className)
Sets the fully qualified class name of the bean.- Parameters:
className- the bean class name
-
getProperties
public java.util.Properties getProperties()
Returns bean properties.- Returns:
- the bean properties
-
setProperties
public void setProperties(java.util.Properties properties)
Sets bean properties.- Parameters:
properties- the new bean properties
-
getInstance
public T getInstance()
Returns the configured instance of this bean.- Returns:
- the instance
-
setInstance
public void setInstance(T instance)
Sets the configured instance of this bean.- Parameters:
instance- the bean
-
-