Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

list all managed beans in spring

// Auto Wire App Context
@Autowired
private ApplicationContext appContext;

// In chosen method
// Get Beans from AppContext
String[] beans = appContext.getBeanDefinitionNames()

// Iter
for (String bean : beans) {
	System.out.println(bean);
}
 
PREVIOUS NEXT
Tagged: #list #managed #beans #spring
ADD COMMENT
Topic
Name
5+8 =