Announcement Announcement Module
Collapse
No announcement yet.
object definitions order Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • object definitions order

    Hi,

    I'm having some issues with my IObjectFactoryPostProcessor:
    I'm scanning the objects defined in the context and I notice that they are returned in random order ... (using IObjectDefinitionRegistry.objectDefinitionNames)

    I guess that's because object definitions are stored in a Dictionnary.

    So, is there any way for my post processor to get the beans definition in the order they were defined in the context ?

    thanks,
    Alain

  • #2
    Hi Alain,

    unfortunately there is no order in the object definitions. You'll have to work around this with an ordered array or another ordered data structure.

    regards,
    Christophe

    Comment

    Working...
    X