}
String componentName = service.componentName();
return Service.EMPTY.equals(componentName) ? serviceName : componentName;
}
private List<Class<?>> scanForServiceBeans(ScannerInput<SwitchYardModel> input) throws IOException {
IsAnnotationPresentFilter annoFilter = new IsAnnotationPresentFilter(Service.class);
annoFilter.addType(Reference.class);
PackageFilter pkgFilter = new PackageFilter(input.getIncludePackages().toArray(new Package[0]));
for (Package pkg : input.getExcludePackages()) {
pkgFilter.addExclude(pkg);
}
CompositeFilter filter = new CompositeFilter(annoFilter, pkgFilter);