-
Notifications
You must be signed in to change notification settings - Fork 1.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
Move Recycler
to log4j-kit
#2400
Conversation
397e210
to
076fa05
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.
I completely agree that recycler concept should not be part of the -api
, but -kit
. Hence, great initiative! 💯
I don't see any blockers, though dropped some minor remarks/questions.
I have the impression that certain file move+edit ops could not get tracked by Git properly and hence appear as new files. This makes reviewing difficult. I don't know if there is much you can do about it. But wanted to share it anyway.
log4j-api/src/main/java/org/apache/logging/log4j/spi/MessageFactory2Adapter.java
Outdated
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/spi/MessageFactory2Adapter.java
Show resolved
Hide resolved
.../java/org/apache/logging/log4j/kit/recycler/internal/ThreadLocalRecyclerFactoryProvider.java
Outdated
Show resolved
Hide resolved
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.
Shouldn't this class be located in a log4j-kit-test
artifact instead? I know, this implies moving log4j-kit/src/test
to log4j-kit-test/src/test
, but be it, just like log4j-core-test
and log4j-api-test
.
Could you also add some Javadoc, please?
This is not correct. There are other modules besides |
What I meant is that only Log4j Core and its sub-modules use recyclers explicitly. Implementations such as |
bb350df
to
e40be4e
Compare
557e621
to
d61ad26
Compare
e40be4e
to
25e7e94
Compare
54b412a
to
de42610
Compare
25e7e94
to
f154c16
Compare
f154c16
to
7624f54
Compare
This PR depends on #2396.
We move
Recycler
interface introduced in #1969 fromlog4j-api
tolog4j-kit
.Since the only current user of
Recycler
is Log4j Core 3.x, we removed the static recycler registry and replaced it with an entry inDefaultBundle
.This also closes #2106.