public class VisualizerApplicationContext extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
VisualizerApplicationContext() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getBean(String beanName)
This is about the same as context.getBean("beanName"), except it has its
own static handle to the Spring context, so calling this method
statically will give access to the beans by name in the Spring
application context.
|
static <T> List<T> |
listBeansOfType(Class<T> type)
Returns all the Spring beans that are instances of the given type.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context)
This method is called from within the ApplicationContext once it is done
starting up, it will stick a reference to itself into this bean.
|
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwarecontext - a reference to the ApplicationContext.org.springframework.beans.BeansExceptionpublic static Object getBean(String beanName)
beanName - the name of the bean to get.Copyright © 2016 Power TAC. All Rights Reserved.