setDefaultProfiles method

  1. @override
void setDefaultProfiles(
  1. List<String> profiles
)
override

Specify the set of profiles to be made active by default if no other profiles are explicitly made active through {@link #setActiveProfiles}.

Calling this method removes overrides any reserved default profiles that may have been added during construction of the environment. @see #AbstractEnvironment() @see #getReservedDefaultProfiles()

Implementation

@override
void setDefaultProfiles(List<String> profiles) {
	return synchronized(_defaultProfiles, () {
		_defaultProfiles.clear();
		for (String profile in profiles) {
			validateProfile(profile);
			_defaultProfiles.add(profile);
		}
	});
}