io.leopard.test.ApplicationContextLocationImpl Maven / Gradle / Ivy
package io.leopard.test;
import java.util.ArrayList;
import java.util.List;
public class ApplicationContextLocationImpl implements ApplicationContextLocation {
private List list = new ArrayList();
public ApplicationContextLocationImpl() {
list.add(new ApplicationContextLocationFirstImpl());
list.add(new ApplicationContextLocationModuleImpl());
}
@Override
public String[] get() {
for (ApplicationContextLocation location : list) {
String[] locations = location.get();
if (locations != null) {
return locations;
}
}
throw new RuntimeException("找不到ApplicationContext配置.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy