Results 1 to 2 of 2

Thread: object definitions order

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    18

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Belgium
    Posts
    160

    Default

    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
    Christophe Herreman
    Spring ActionScript Founder
    http://www.herrodius.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •