Provide access to forceServiceInstantiation (Eager loading through the API)
---------------------------------------------------------------------------

         Key: HIVEMIND-154
         URL: http://issues.apache.org/jira/browse/HIVEMIND-154
     Project: HiveMind
        Type: Improvement
  Components: framework  
    Reporter: Gabriel H
    Priority: Minor


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!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to