Package com.foreach.across.core.context.configurer

Examples of com.foreach.across.core.context.configurer.PropertySourcesConfigurer


    // If properties are set on the context, add them last
    Properties contextProperties = context.getProperties();

    if ( !contextProperties.isEmpty() ) {
      configurers.add( new PropertySourcesConfigurer(
          new PropertiesPropertySource( AcrossContext.BEAN, contextProperties ) ) );
    }

    return configurers;
  }
View Full Code Here


    // Finally add properties set on the module
    Properties moduleProperties = module.getProperties();

    if ( !moduleProperties.isEmpty() ) {
      configurers.add( new PropertySourcesConfigurer(
          new PropertiesPropertySource( module.getName(), moduleProperties ) ) );
    }

    return configurers;
  }
View Full Code Here

   *
   * @param propertySources A PropertySources instance.
   */
  @Override
  public void addPropertySources( PropertySources propertySources ) {
    addApplicationContextConfigurer( new PropertySourcesConfigurer( propertySources ) );
  }
View Full Code Here

   * Shortcut to add PropertySources to the context.
   *
   * @param propertySources One or more PropertySource instances.
   */
  public void addPropertySources( PropertySource<?>... propertySources ) {
    addApplicationContextConfigurer( new PropertySourcesConfigurer( propertySources ) );
  }
View Full Code Here

   * @param propertySources A PropertySources instance.
   */
  @Override
  public void addPropertySources( PropertySources propertySources ) {
    // Only added to the context as they are merged in the environment of the module anyway
    addApplicationContextConfigurer( new PropertySourcesConfigurer( propertySources ),
                                     ConfigurerScope.CONTEXT_ONLY );
  }
View Full Code Here

   * @param propertySources One or more PropertySource instances.
   */
  @Override
  public void addPropertySources( PropertySource<?>... propertySources ) {
    // Only added to the context as they are merged in the environment of the module anyway
    addApplicationContextConfigurer( new PropertySourcesConfigurer( propertySources ),
                                     ConfigurerScope.CONTEXT_ONLY );
  }
View Full Code Here

TOP

Related Classes of com.foreach.across.core.context.configurer.PropertySourcesConfigurer

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.