Spring
spring interface를 가지고 있는 class 목록 가져오기
자바초보자
2015. 12. 2. 18:25
728x90
//WebApplicationContext context = ContextLoader.getCurrentWebApplicationContext();
Map<String,Service> beans = context.getBeansOfType(Service.class);
String key = "";
Service service= null;
Iterator< String >it = beans.keySet().iterator();
while( it.hasNext() ){
key = it.next();
service= beans.get(key);
if( service!= null ){
service.deleteAll("siteId");
}
}
728x90