-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Conversation
There was a problem hiding this 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>>. |
There was a problem hiding this comment.
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`. |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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.
...ent-projects/arc/processor/src/main/java/org/jboss/protean/arc/processor/BeanDeployment.java
Show resolved
Hide resolved
LGTM! |
cfd521f
to
883cf4c
Compare
There was a problem hiding this 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>>. |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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
883cf4c
to
ca97498
Compare
removed bean
NOTE: This is just the first attempt to address #658 and improve the UX.