Class SpringRegistry
- java.lang.Object
-
- org.openehealth.ipf.commons.spring.core.config.SpringRegistry
-
- All Implemented Interfaces:
Registry,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class SpringRegistry extends Object implements Registry, org.springframework.beans.factory.BeanFactoryAware
Class that bridges theRegistryinterface to a SpringListableBeanFactory. You simply need to declare a Spring bean like this:
or, even easier, using the globalContext tag in the http://openehealth.org/schema/ipf-commons-core extension namespace:Then the "stateful" Groovy Extension Modules will access the Spring registry.- Since:
- 2.5
-
-
Constructor Summary
Constructors Constructor Description SpringRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tbean(Class<T> requiredType)Objectbean(String name)<T> Map<String,T>beans(Class<T> requiredType)booleanequals(Object o)inthashCode()voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Stores the beanFactory and initialized theContextFacade.
-
-
-
Method Detail
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansExceptionStores the beanFactory and initialized theContextFacade.- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException- See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)
-
-