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.Object
Stores bean information. ABean
object 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.String
getClassName()
Returns the fully qualified class name of the bean.T
getInstance()
Returns the configured instance of this bean.java.util.Properties
getProperties()
Returns bean properties.void
setClassName(java.lang.String className)
Sets the fully qualified class name of the bean.void
setInstance(T instance)
Sets the configured instance of this bean.void
setProperties(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
-
-