use of com.vaadin.flow.spring.VaadinScanPackagesRegistrar.VaadinScanPackages in project flow by vaadin.
the class VaadinServletContextInitializer method getDefaultPackages.
List<String> getDefaultPackages() {
List<String> packagesList = Collections.emptyList();
if (appContext.getBeanNamesForType(VaadinScanPackages.class).length > 0) {
VaadinScanPackages packages = appContext.getBean(VaadinScanPackages.class);
packagesList = packages.getScanPackages();
}
if (!packagesList.isEmpty()) {
getLogger().trace("Using explicitly configured packages for scan Vaadin types at startup {}", packagesList);
} else if (AutoConfigurationPackages.has(appContext)) {
packagesList = AutoConfigurationPackages.get(appContext);
}
return packagesList;
}
Aggregations