Announcement Announcement Module
No announcement yet.
AbstractObjectFactory extra method suggestion Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • AbstractObjectFactory extra method suggestion

    Hi Christophe,

    as far as I can gather from the docs and the sources its not possible at the moment to add an instance of an object to the AbstractObjectFactory, and I mean an instance that isn't constructed by Spring.

    I'd like to suggest an extra method that facilitates this. I.E. I'd like to be able to do this:
    addObjectToInternalCache(name:String,instance:Obje ct):void;

    An easy example of usage for this would be to add the instance of the applicationContext to the object cache. I have a few factories that could be more easily configured this way.
    But it could also be useful for adding objects that you retrieved remotely for example.

    what do you think?

    thanks in advance,