Application.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:castlemock 作者:
/**
 * The method provides the functionality to retrieve all the service facades and initialize them
 * @see ServiceFacade
 * @see com.castlemock.core.basis.model.Service
 */
protected void initializeServiceFacade(){
    final Map<String, Object> components = applicationContext.getBeansWithAnnotation(Service.class);
    for(Map.Entry<String, Object> entry : components.entrySet()){
        final Object value = entry.getValue();
        if(value instanceof ServiceFacade){
            final ServiceFacade serviceFacade = (ServiceFacade) value;
            serviceFacade.initiate();
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号