org.springframework.boot.test

Class ConfigFileApplicationContextInitializer

  • java.lang.Object
    • org.springframework.boot.test.ConfigFileApplicationContextInitializer
  • All Implemented Interfaces:
    org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>


    public class ConfigFileApplicationContextInitializer
    extends Object
    implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
    ApplicationContextInitializer that can be used with the ContextConfiguration.initializers() to trigger loading of application.properties.
    Author:
    Phillip Webb
    See Also:
    ConfigFileApplicationListener
    • Constructor Detail

      • ConfigFileApplicationContextInitializer

        public ConfigFileApplicationContextInitializer()
    • Method Detail

      • initialize

        public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
        Specified by:
        initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>

Copyright © 2016 Pivotal Software, Inc.. All rights reserved.