Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ConfigurationParser class for calling desired scanner #13

Open
OlehYakovenko opened this issue Nov 9, 2023 · 1 comment
Open

Comments

@OlehYakovenko
Copy link
Contributor

Class should decide what scanner should be used (including merge of results?), default scanner is ClassPathAnnotationBased scanner

@JoshukLite
Copy link
Contributor

Main goal of this class is to recursively call ClassPathAnnotationBasedScanner to get all found BeanDefinition's by provided configuration class. Recursively means if scanner will return BeanDefinition for another configuration with annotation to scan other packages then it should also search for BeanDefinitions in that other package. Class will return all recursively found BeanDefinitions found in all search packages.
Implementation note:

  • Parsing of configuration class could be done in separate class, this will improve readability and testing
  • class should have method that takes search class to parse and return collection of found BeanDefinitions, something like public List<BeanDefinition> parse(Class<?> configurationClass)
  • parse method should call itself if one of the found BeanDefinitions is configuration class

@JoshukLite JoshukLite changed the title Create class for calling desired scanner Create ConfigurationParser class for calling desired scanner Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants