Package com.github.diamond.client.event

Examples of com.github.diamond.client.event.ConfigurationListener


 
  public static void main(String[] args) throws IOException {
    ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
   
    PropertiesConfiguration configuration = PropertiesConfigurationFactoryBean.getPropertiesConfiguration();
    configuration.addConfigurationListener(new ConfigurationListener() {
          @Override
          public void configurationChanged(ConfigurationEvent event) {
                              //监听配置参数变化,监听不到?
              System.out.println(event.getType().name() + " " + event.getPropertyName() + " " + event.getPropertyValue());
          }
View Full Code Here

TOP

Related Classes of com.github.diamond.client.event.ConfigurationListener

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.