Skip to content

Conversation

@bsideup
Copy link
Contributor

@bsideup bsideup commented Feb 25, 2019

By implementing SpringApplicationRunListener, we can install the agent
very early in the lifecycle (starting phase).

/cc @OlegDokuka @philwebb @sbrannen @sdeleuze @ryanjbaxter @spencergibb

By implementing `SpringApplicationRunListener`, we can install the agent
very early in the lifecycle (`starting` phase).
@bsideup bsideup requested a review from smaldini February 25, 2019 14:43
* This {@link SpringApplicationRunListener} installs the agent when an app is starting
* by calling {@link BlockHound#install(BlockHoundIntegration...)}.
*/
public class BlockHoundRunListener implements SpringApplicationRunListener, Ordered {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@philwebb does it have to be public, or I can make it internal?

Copy link
Contributor

Choose a reason for hiding this comment

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

@philwebb, has the Boot team considered making the methods in SpringApplicationRunListener interface default methods now that Java 8 is the baseline?

Choose a reason for hiding this comment

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

Good idea, will add an issue. That API is somewhat unusual as it mainly exists to break a package tangle.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea, will add an issue.

Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@philwebb anything to say about the visibility of this class? 😊

@bsideup bsideup modified the milestones: 1.0.0.M2, 1.0.0.M3 Mar 25, 2019
@bsideup bsideup removed this from the 1.0.0.M3 milestone May 5, 2019
@bsideup
Copy link
Contributor Author

bsideup commented May 5, 2019

I'm going to close this PR since we have a more generic JUnit Platform integration now (see #13)

@bsideup bsideup closed this May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants