2009/04/15 - Apache HiveMind has been retired.

For more information, please explore the Attic.

Jakarta > HiveMind
Font size:      

hivemind.lib.SpringLookupFactory Service

The SpringLookupFactory supports integration with the Spring framework, another open-source lightweight container. SpringLookupFactory is a service constructor that obtains a core service implementation from a Spring BeanFactory .

By default, the BeanFactory is the DefaultSpringBeanFactory (which is a projection of the BeanFactory held by the DefaultSpringBeanFactoryHolder service). Part of your application startup code requires that you start a Spring instance and inform the DefaultSpringBeanFactoryHolder about it.

The SpringLookupFactory expects exactly one parameter element:

<lookup-bean name="..." bean-factory="..."/> 

The name attribute is the name of the bean to look for inside the Spring BeanFactory.

The optional bean-factory attribute is an object reference that allows an alternate Spring BeanFactory to be used.