public class SpringRegistry extends Object implements Registry, org.springframework.beans.factory.BeanFactoryAware
Registry interface to a Spring
ListableBeanFactory. You simply need to declare a Spring
bean like this:
Then the "stateful" Groovy Extension Modules will access the Spring
registry.| Constructor and Description |
|---|
SpringRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
bean(Class<T> requiredType) |
Object |
bean(String name) |
<T> Map<String,T> |
beans(Class<T> requiredType) |
boolean |
equals(Object o) |
int |
hashCode() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Stores the beanFactory and initialized the
ContextFacade. |
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
ContextFacade.setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionBeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)Copyright © 2020 Open eHealth Foundation. All rights reserved.