Examples of StandardEnvironment


Examples of org.springframework.core.env.StandardEnvironment

   * {@link Service @Service}, and {@link Controller @Controller}
   * stereotype annotations
   * @see #registerDefaultFilters()
   */
  public ClassPathScanningCandidateComponentProvider(boolean useDefaultFilters) {
    this(useDefaultFilters, new StandardEnvironment());
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

   * Return a new {@link StandardEnvironment}.
   * <p>Subclasses may override this method in order to supply
   * a custom {@link ConfigurableEnvironment} implementation.
   */
  protected ConfigurableEnvironment createEnvironment() {
    return new StandardEnvironment();
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

   * @deprecated as of Spring 3.1 in favor of
   * {@link #ResourceEditorRegistrar(ResourceLoader, Environment)}
   */
  @Deprecated
  public ResourceEditorRegistrar(ResourceLoader resourceLoader) {
    this(resourceLoader, new StandardEnvironment());
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  private static Environment getOrCreateEnvironment(BeanDefinitionRegistry registry) {
    Assert.notNull(registry, "BeanDefinitionRegistry must not be null");
    if (registry instanceof EnvironmentCapable) {
      return ((EnvironmentCapable) registry).getEnvironment();
    }
    return new StandardEnvironment();
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

   * @deprecated since Spring 3.1 in favor of
   * {@link #BeanDefinitionParserDelegate(XmlReaderContext, Environment)}
   */
  @Deprecated
  public BeanDefinitionParserDelegate(XmlReaderContext readerContext) {
    this(readerContext, new StandardEnvironment());
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  private static Environment getOrCreateEnvironment(BeanDefinitionRegistry registry) {
    Assert.notNull(registry, "BeanDefinitionRegistry must not be null");
    if (registry instanceof EnvironmentCapable) {
      return ((EnvironmentCapable) registry).getEnvironment();
    }
    return new StandardEnvironment();
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  private static Environment getOrCreateEnvironment(BeanDefinitionRegistry registry) {
    Assert.notNull(registry, "BeanDefinitionRegistry must not be null");
    if (registry instanceof EnvironmentCapable) {
      return ((EnvironmentCapable) registry).getEnvironment();
    }
    return new StandardEnvironment();
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

   * {@link Service @Service}, and {@link Controller @Controller}
   * stereotype annotations
   * @see #registerDefaultFilters()
   */
  public ClassPathScanningCandidateComponentProvider(boolean useDefaultFilters) {
    this(useDefaultFilters, new StandardEnvironment());
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

   * Create and return a new {@link StandardEnvironment}.
   * <p>Subclasses may override this method in order to supply
   * a custom {@link ConfigurableEnvironment} implementation.
   */
  protected ConfigurableEnvironment createEnvironment() {
    return new StandardEnvironment();
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

public class EnvironmentTest {

    @Test
    public void test() {
        //会自动注册 System.getProperties() 和 System.getenv()
        Environment environment = new StandardEnvironment();
        System.out.println(environment.getProperty("file.encoding"));
        System.out.println(environment.getProperty("data"));


    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.