// Path: elastic-config-example/src/main/java/com/github/config/demo/simple/EalsticConfigBean.java
// @Setter
// @Getter
// public class EalsticConfigBean {
// 
//     private String stringProperty;
// 
//     private int intProperty;
// 
//     private Boolean booleanProperty;
// 
//     @Override
//     public String toString() {
//         return "EalsticCofnig [stringProperty=" + stringProperty + ", intProperty=" + intProperty
//             + ", booleanProperty=" + booleanProperty + "]";
//     }
// 
// }
// 
// Path: elastic-config-example/src/main/java/com/github/config/demo/simple/WithEalsticConfigBean.java
// @Component
// public class WithEalsticConfigBean {
// 
//     @Resource(name = "elasticconfig0")
//     private ElasticConfig elasticConfig;
// 
//     public void someMethod() {
//         System.out.println(elasticConfig);
//     }
// 
// }
// 
// Path: elastic-config-example/src/main/java/com/github/config/demo/simple/WithSpelBean.java
// @Component
// public class WithSpelBean {
// 
//     @Value("${string_property_key}")
//     private String stringProperty;
// 
//     @Value("${int_property_key:100}")
//     private int intProperty;
// 
//     @Value("${boolean_property_key}")
//     private boolean booleanProperty;
// 
//     public void someMethod() {
//         System.out.println(String.format("My properties: [%s] - [%s] - [%s]", stringProperty, intProperty,
//             booleanProperty));
//     }
// 
// }


import lombok.Cleanup;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.github.config.demo.simple.EalsticConfigBean;
import com.github.config.demo.simple.WithEalsticConfigBean;
import com.github.config.demo.simple.WithSpelBean;
package com.github.config.demo.spring;




public class ElasticConfigPlaceHodlerSupport {

    public static void main(String[] args) {

        @Cleanup
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
            "classpath:elastic-config-placeholder.xml");
        context.registerShutdownHook();
        context.start();

        try {

            while (true) {

// Path: elastic-config-example/src/main/java/com/github/config/demo/simple/EalsticConfigBean.java
// @Setter
// @Getter
// public class EalsticConfigBean {
// 
//     private String stringProperty;
// 
//     private int intProperty;
// 
//     private Boolean booleanProperty;
// 
//     @Override
//     public String toString() {
//         return "EalsticCofnig [stringProperty=" + stringProperty + ", intProperty=" + intProperty
//             + ", booleanProperty=" + booleanProperty + "]";
//     }
// 
// }
// 
// Path: elastic-config-example/src/main/java/com/github/config/demo/simple/WithEalsticConfigBean.java
// @Component
// public class WithEalsticConfigBean {
// 
//     @Resource(name = "elasticconfig0")
//     private ElasticConfig elasticConfig;
// 
//     public void someMethod() {
//         System.out.println(elasticConfig);
//     }
// 
// }
// 
// Path: elastic-config-example/src/main/java/com/github/config/demo/simple/WithSpelBean.java
// @Component
// public class WithSpelBean {
// 
//     @Value("${string_property_key}")
//     private String stringProperty;
// 
//     @Value("${int_property_key:100}")
//     private int intProperty;
// 
//     @Value("${boolean_property_key}")
//     private boolean booleanProperty;
// 
//     public void someMethod() {
//         System.out.println(String.format("My properties: [%s] - [%s] - [%s]", stringProperty, intProperty,
//             booleanProperty));
//     }
// 
// }


// Path: elastic-config-example/src/main/java/com/github/config/demo/spring/ElasticConfigPlaceHodlerSupport.java
import lombok.Cleanup;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.github.config.demo.simple.EalsticConfigBean;
import com.github.config.demo.simple.WithEalsticConfigBean;
import com.github.config.demo.simple.WithSpelBean;

package com.github.config.demo.spring;




public class ElasticConfigPlaceHodlerSupport {

    public static void main(String[] args) {

        @Cleanup
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
            "classpath:elastic-config-placeholder.xml");
        context.registerShutdownHook();
        context.start();

        try {

            while (true) {

                EalsticConfigBean exampleBean = context.getBean(EalsticConfigBean.class);