# addActiveProfile method

1. @override

void addActiveProfile(

1. String profile

)
override

Adds an additional active profile to the current set.

This can be used to programmatically enrich the environment at runtime.

Example:

    env.addActiveProfile('integration-test');

## Implementation

    @override
    void addActiveProfile(String profile) {
    	validateProfile(profile);
    	doGetActiveProfiles();

    	return synchronized(_activeProfiles, () {
    		_activeProfiles.add(profile);
    	});
    }