The idGenerator static field in MessageHeaders looks always null, and no static setIdGenerator method provided.
but the static getGenerator method will check this null idGenerator first, then the default-idGenerator.
I see in spring integration, their IdGeneratorConfigurer will use reflection to set this idGenerator field.
I want to understand the design, its a little strange for me.
Originally posted by @mjd507 in spring-projects/spring-integration#11014 (comment)
The
idGeneratorstatic field inMessageHeaderslooks always null, and no static setIdGenerator method provided.but the static
getGeneratormethod will check this nullidGeneratorfirst, then the default-idGenerator.I see in spring integration, their
IdGeneratorConfigurerwill use reflection to set this idGenerator field.I want to understand the design, its a little strange for me.
Originally posted by @mjd507 in spring-projects/spring-integration#11014 (comment)