if (type.isAnnotationPresent(AnnotationBasedBeanSelector.class)) {
return new AnnotationBasedSelector(type.getAnnotation(AnnotationBasedBeanSelector.class));
}
// fallback on annotation based with default annotation (@Bean)
return new DefaultSelector();
}