Skip to content

Support getting environment from other events. #7066

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

Closed
wants to merge 1 commit into from

Conversation

youngm
Copy link
Contributor

@youngm youngm commented Sep 29, 2016

PR for Issue: #7027

This PR supports using Environment properties from any event that provide a "getApplicationContext()" method. It also changes existing functionality to log a warning if Environment properties are not used (would have been useful in my debugging of the issue).

After writing the code I realized that the Ready is probably the only other useful event that currently exists that someone might want to use that provides Environment properties. If you'd prefer for me to change the PR to only add support for Ready and/or not log a warning let me know and I can update the PR to do that.

@pivotal-issuemaster
Copy link

@youngm Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@youngm Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 29, 2016
@youngm youngm force-pushed the pidotherevents branch 2 times, most recently from 3afe8a3 to 8d9f154 Compare September 29, 2016 22:20
@philwebb
Copy link
Member

I'm not too keen on the reflection route, it seems a bit brittle. I'd probably rather add the explicit event types that we want to support.

@philwebb philwebb added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 30, 2016
@youngm
Copy link
Contributor Author

youngm commented Sep 30, 2016

PR Updated.

@philwebb philwebb added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Sep 30, 2016
@philwebb philwebb self-assigned this Sep 30, 2016
@philwebb philwebb added this to the 1.4.2 milestone Sep 30, 2016
philwebb added a commit that referenced this pull request Oct 31, 2016
* pr/7066:
  Support ApplicationReadyEvent from PidFileWriter
@philwebb philwebb closed this in 970dcc3 Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-provided Feedback has been provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants