use of com.tvd12.ezyfox.bean.EzyPackagesToScanProvider in project ezyhttp by youngmonkeys.
the class ApplicationContextBuilder method getPackagesToScanFromProviders.
private Set<String> getPackagesToScanFromProviders(EzyReflection reflection) {
Set<String> answer = new HashSet<>();
Set<Class<?>> providerClasses = reflection.getExtendsClasses(EzyPackagesToScanProvider.class);
for (Class<?> clazz : providerClasses) {
EzyPackagesToScanProvider provider = (EzyPackagesToScanProvider) EzyClasses.newInstance(clazz);
answer.addAll(provider.provide());
}
return answer;
}
Aggregations