Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-154

Provide access to forceServiceInstantiation (Eager loading through the API)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • framework
    • None

    Description

      I know there is a Hivemind configuration point EagerLoad, but it would be really useful to be able to eager load a service through the hivemind api itself.

      Having a method in Registry, like:
      public void forceServiceInstantiation(String serviceId) {
      _infrastructure.getServicePoint(serviceId, null).forceServiceInstantiation();
      }

      Spring has a way to do this via preInstantiateSingletons():
      DefaultListableBeanFactory
      preInstantiateSingletons()

      http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/beans/factory/support/DefaultListableBeanFactory.html#preInstantiateSingletons()

      Thanks!

      Attachments

        Activity

          People

            Unassigned Unassigned
            gabrielh Gabriel H
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: