All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.cloud.config.CloudConfigureChangeStarter Maven / Gradle / Ivy

There is a newer version: 2.5.1.v20220215
Show newest version
package org.nutz.cloud.config;

import org.nutz.boot.AppContext;
import org.nutz.boot.starter.ServerFace;
import org.nutz.cloud.config.spi.ConfigureEventHandler;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

@IocBean
public class CloudConfigureChangeStarter implements ServerFace {
    
    @Inject
    protected AppContext appContext;

    public void start() throws Exception {
        appContext.getBeans(ConfigureEventHandler.class).forEach((listener)->CloudConfig.addListener(listener));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy