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

Refactor FactoryResolver #299

Merged
merged 2 commits into from
Jul 9, 2023
Merged

Refactor FactoryResolver #299

merged 2 commits into from
Jul 9, 2023

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Jul 9, 2023

📚 Description

There is no need to have a FactoryNotFoundException because the AbstractClassResolver will resolve always a Factory even if there is none in a module, creating always a default anonymous class which extends the AbstractFactory (see: createDefaultGacelaClass())

🔖 Changes

  • Simplify FactoryResolver
  • Remove FactoryNotFoundException

🤔 TODO

We should do the same to the ConfigResolver in a follow up PR.

Because in case of a missing Factory, a default anon-abstract factory will be created
Copy link
Member

@JesusValera JesusValera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏼

Copy link

@fabriziofs fabriziofs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👌

@Chemaclass Chemaclass merged commit 0ce7143 into main Jul 9, 2023
12 checks passed
@Chemaclass Chemaclass deleted the refactor-FactoryResolver branch July 9, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants