You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With ConfigurableEnvironment, it is currently annoying to activate additional profile. You must get the array of active profiles, augment that array, and set the new array back on the environment. If there are ever multiple threads working with ConfigurableEnvironment, it's possible to have a timing issue and changes lost.
I would like to see an addActiveProfile method added to ConfigurableEnvironment.
commit c19aec61feea8797832d98a1768b33619b109754 (HEAD, SPR-8548)
Author: Chris Beams <cbeams@vmware.com>
Date: Fri Aug 19 14:46:36 2011 -0700
Introduce ConfigurableEnvironment#addActiveProfile
Provides a convenient mechanism for activating an additional profile
while preserving those that are already active, as opposed to
calling #setActiveProfiles with the contents of #getActiveProfiles plus
the new profile.
Issue: SPR-8548
Scott, you may also be interested in this commit as well, e.g. if you wish to impose any additional constraints on profile names for CloudEnvironment users:
commit 2935d35f113bc6067aa4a89303f17dd178dd8a28
Author: Chris Beams <cbeams@vmware.com>
Date: Fri Aug 19 14:43:25 2011 -0700
Introduce AbstractEnvironment#validateProfile
Consolidates validation for profiles and provides a mechanism for
AbstractEnvironment subclasses to customize validation logic if
desired.
Scott Andrews opened SPR-8548 and commented
With ConfigurableEnvironment, it is currently annoying to activate additional profile. You must get the array of active profiles, augment that array, and set the new array back on the environment. If there are ever multiple threads working with ConfigurableEnvironment, it's possible to have a timing issue and changes lost.
I would like to see an addActiveProfile method added to ConfigurableEnvironment.
Affects: 3.1 M2
The text was updated successfully, but these errors were encountered: