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

ArC - document "remove unused beans" optimization #674

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Jan 30, 2019

NOTE: This is just the first attempt to address #658 and improve the UX.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Looks good overall and a nice improvement.

I added a few minor comments inline.

@@ -168,6 +170,8 @@ List<AdditionalBeanBuildItem> additionalBeans() {
}
----

NOTE: An bean registration that is a result of an `AdditionalBeanBuildItem` is removable by default. See also <<remove_unused_beans>>.
Copy link
Member

Choose a reason for hiding this comment

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

s/An bean/A bean/


The container attempts to remove all unused beans during build by default.
This optimization could be disabled: `shamrock.arc.remove-unused-beans=false`.
Copy link
Member

Choose a reason for hiding this comment

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

s/could/can/

default <T> T instance(Class<T> type, Annotation... qualifiers) {
return instanceFactory(type, qualifiers).get();
return instanceFactory(type, qualifiers).get();
Copy link
Member

Choose a reason for hiding this comment

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

There is a trailing whitespace.

@FroMage
Copy link
Member

FroMage commented Jan 30, 2019

LGTM!

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Added one last typo issue (sorry missed it at the first review). Once it's fixed, it's good to merge.

@@ -137,6 +137,8 @@ BeanDefiningAnnotationBuildItem additionalBeanDefiningAnnotation() {
}
----

NOTE: Bean registrations that are result of an `BeanDefiningAnnotationBuildItem` are unremovable by default. See also <<remove_unused_beans>>.
Copy link
Member

Choose a reason for hiding this comment

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

sorry missed this one first: s/of an/of a/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to sorry for my error ;-). Thanks!

- log a warning message when an extension template attempts to use a
removed bean
- resolves #658
@mkouba mkouba merged commit b1d8215 into quarkusio:master Jan 30, 2019
@cescoffier cescoffier added this to the 0.8.0 milestone Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bean removal should WARN when lookups fail
4 participants