The following process describes how the toolkit uses bean property
converter:
- When the application starts, initialization manager reads file btt.xml to
initialize all of the components, which include settings, trace, data,
format, context, operation, processor, service, invoker, and others.
- When the application reads the settings component, the toolkit
initializes the bean property converters one by one according to the beanPropertyConverters tag.
- When the application reads bean property converter, the toolkit
find the class type and corresponding converter according to “id” and “value” attributes and register them.
- When the application set value into bean collection's attribute with string value, the toolkit check the register
list and invoke the corresponding converter to perform the conversion from
string value to the non-string value.
- For Java primitive types,
the toolkit supports conversion between string and Java primitive types without any additional
actions. Customer can convert Java primitive
directly and transparently without developing and configuring Java primitive type converters.