Skip to content

Add ActiveProfileResolver and 'resolver' attribute to @ActiveProfiles (SPR-10338) - #246

Closed
michail-nikolaev wants to merge 1 commit into
spring-projects:3.2.xfrom
michail-nikolaev:SPR-10338
Closed

michail-nikolaev wants to merge 1 commit into
spring-projects:3.2.xfrom
michail-nikolaev:SPR-10338

Conversation

@michail-nikolaev

Copy link
Copy Markdown

Implementation of https://jira.springsource.org/browse/SPR-10338 previously discussed here - #240

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.

Updated code, javadoc, reference manual, changelog

If it will hard to merge I may resubmit later.

Javadoc 1
Javadoc 2
Reference manual

Issue: SPR-10338

@michail-nikolaev

Copy link
Copy Markdown
Author

Fixed type in javadoc

@ghost ghost assigned sbrannen Mar 5, 2013
Add ActiveProfileResolver interface to use together with 'resolver'
attribute of @activeprofiles annotation. ActiveProfileResolver allows
to resolve active profiles for test in dynamic way at runtime.
Add support for ActiveProfileResolver to ContextLoaderUtils.

Changes:

  - Add ActiveProfileResolver, update ContextLoaderUtils

  - Test for new functionality

  - Changelog update

  - Reference manual TODO for 'inheritProfiles' done

  - Reference manual update for ActiveProfileResolver

Issue: SPR-10338
@michail-nikolaev

Copy link
Copy Markdown
Author

One more typo fixed:

Furthermore, sometimes it is required to resolve active profiles for test at runtime. There are several possible reasons for it:

@michail-nikolaev

Copy link
Copy Markdown
Author

Just interesting - are you planning to merge it before 3.2.2 release? (need to plan activities for project)

@sbrannen

sbrannen commented Mar 8, 2013

Copy link
Copy Markdown
Member

No. This feature will not make it into 3.2.2.

It is currently scheduled against the 4.0 backlog.

We typically do not introduce new features of this magnitude in point releases; however, if there is significant interest from the community at large, it is possible that it would be considered in the 3.2.x time frame.

@michail-nikolaev

Copy link
Copy Markdown
Author

OK, thanks you.
I'll update pull request to the latest sources then issue will moved to some 4.0 M* version.

@sbrannen

Copy link
Copy Markdown
Member

Michail, thanks for all of your hard work!

You'll notice that I unfortunately wasn't able to merge your pull request directly due to significant changes in the 4.0 (i.e., master) branch; however, I was still able to use a lot of your code (albeit with some rather tedious copying-n-pasting ;)).

See the following commit: 044f512

Also, your thorough unit and integration tests were especially helpful.

Cheers,

Sam

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.

2 participants