Examples of PropertySources


Examples of org.springframework.core.env.PropertySources

                                         Collection<ApplicationContextConfigurer> configurers ) {
    ConfigurableEnvironment environment = context.getEnvironment();

    for ( ApplicationContextConfigurer configurer : configurers ) {
      // First register property sources
      PropertySources propertySources = configurer.propertySources();

      if ( propertySources != null ) {
        for ( PropertySource<?> propertySource : propertySources ) {
          // Lower configurers means precedence in property sources
          environment.getPropertySources().addFirst( propertySource );
View Full Code Here

Examples of org.springframework.core.env.PropertySources

  public int hashCode() {
    Object providedBeans = providedBeans();
    String[] componentScanPackages = componentScanPackages();
    Class<?>[] annotatedClasses = annotatedClasses();
    BeanFactoryPostProcessor[] postProcessors = postProcessors();
    PropertySources propertySources = propertySources();

    int result = annotatedClasses != null ? Arrays.hashCode( annotatedClasses ) : 0;
    result = 31 * result + ( componentScanPackages != null ? Arrays.hashCode( componentScanPackages ) : 0 );
    result = 31 * result + ( postProcessors != null ? Arrays.hashCode( postProcessors ) : 0 );
    result = 31 * result + ( providedBeans != null ? providedBeans.hashCode() : 0 );
    result = 31 * result + ( propertySources != null ? propertySources.hashCode() : 0 );
    return result;
  }
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.