Rename spring.{profile}.active => {profiles}

Same for spring.profiles.default
This commit is contained in:
Chris Beams 2011-02-08 19:07:46 +00:00
parent a2bc381ade
commit c5063004eb
4 changed files with 6 additions and 6 deletions

View File

@ -94,8 +94,8 @@
ConfigurableEnvironment#setDefaultProfiles(String...) ConfigurableEnvironment#setDefaultProfiles(String...)
Properties (typically through -D system properties, environment variables, or servlet context init params): Properties (typically through -D system properties, environment variables, or servlet context init params):
spring.profile.active=p1,p2 spring.profiles.active=p1,p2
spring.profile.default=p1,p2 spring.profiles.default=p1,p2
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>

View File

@ -30,7 +30,7 @@ import org.springframework.core.env.ConfigurableEnvironment;
* *
* <p>A <em>profile</em> is a named logical grouping that may be activated programatically via * <p>A <em>profile</em> is a named logical grouping that may be activated programatically via
* {@link ConfigurableEnvironment#setActiveProfiles} or declaratively through setting the * {@link ConfigurableEnvironment#setActiveProfiles} or declaratively through setting the
* {@link AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME spring.profile.active} property, * {@link AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME spring.profiles.active} property,
* usually through JVM system properties, as an environment variable, or for web applications * usually through JVM system properties, as an environment variable, or for web applications
* as a Servlet context parameter in {@code web.xml}. * as a Servlet context parameter in {@code web.xml}.
* *

View File

@ -45,13 +45,13 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
* Name of property to set to specify active profiles: {@value}. May be comma delimited. * Name of property to set to specify active profiles: {@value}. May be comma delimited.
* @see ConfigurableEnvironment#setActiveProfiles * @see ConfigurableEnvironment#setActiveProfiles
*/ */
public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profile.active"; public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profiles.active";
/** /**
* Name of property to set to specify default profiles: {@value}. May be comma delimited. * Name of property to set to specify default profiles: {@value}. May be comma delimited.
* @see ConfigurableEnvironment#setDefaultProfiles * @see ConfigurableEnvironment#setDefaultProfiles
*/ */
public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profile.default"; public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profiles.default";
protected final Log logger = LogFactory.getLog(getClass()); protected final Log logger = LogFactory.getLog(getClass());

View File

@ -69,7 +69,7 @@ public interface Environment extends PropertyResolver {
* Return the set of profiles explicitly made active for this environment. Profiles are used for * Return the set of profiles explicitly made active for this environment. Profiles are used for
* creating logical groupings of bean definitions to be registered conditionally, often based on * creating logical groupings of bean definitions to be registered conditionally, often based on
* deployment environment. Profiles can be activated by setting {@linkplain * deployment environment. Profiles can be activated by setting {@linkplain
* AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME "spring.profile.active"} as a system property * AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME "spring.profiles.active"} as a system property
* or by calling {@link ConfigurableEnvironment#setActiveProfiles(String...)}. * or by calling {@link ConfigurableEnvironment#setActiveProfiles(String...)}.
* *
* <p>If no profiles have explicitly been specified as active, then any 'default' profiles will implicitly * <p>If no profiles have explicitly been specified as active, then any 'default' profiles will implicitly