Package org.springframework.core.env

Examples of org.springframework.core.env.StandardEnvironment


   * {@link PathMatchingResourcePatternResolver} and {@link StandardEnvironment}.
   * @see PathMatchingResourcePatternResolver
   * @see Environment
   */
  public ResourceArrayPropertyEditor() {
    this(new PathMatchingResourcePatternResolver(), new StandardEnvironment(), true);
  }
View Full Code Here


   * @param resourcePatternResolver the ResourcePatternResolver to use
   * @deprecated as of 3.1 in favor of {@link #ResourceArrayPropertyEditor(ResourcePatternResolver, PropertyResolver)}
   */
  @Deprecated
  public ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver) {
    this(resourcePatternResolver, new StandardEnvironment(), true);
  }
View Full Code Here

   * if no corresponding system property could be found
   * @deprecated as of 3.1 in favor of {@link #ResourceArrayPropertyEditor(ResourcePatternResolver, PropertyResolver, boolean)}
   */
  @Deprecated
  public ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver, boolean ignoreUnresolvablePlaceholders) {
    this(resourcePatternResolver, new StandardEnvironment(), ignoreUnresolvablePlaceholders);
  }
View Full Code Here

    // Inherit Environment if possible
    if (this.registry instanceof EnvironmentCapable) {
      this.environment = ((EnvironmentCapable)this.registry).getEnvironment();
    }
    else {
      this.environment = new StandardEnvironment();
    }
  }
View Full Code Here

   * @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

   * 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

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

   * 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

   * @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

  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

TOP

Related Classes of org.springframework.core.env.StandardEnvironment

Copyright © 2018 www.massapicom. 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.