org.zodiac.actuate.context.ApplicationRefreshEndpoint Maven / Gradle / Ivy
package org.zodiac.actuate.context;
import java.util.Collection;
import java.util.Set;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
import org.zodiac.core.context.refresh.AppContextRefresher;
@Endpoint(id = ApplicationRefreshEndpoint.ENDPOINT_NAME)
public class ApplicationRefreshEndpoint {
public static final String ENDPOINT_NAME = "app-refresh";
private AppContextRefresher contextRefresher;
public ApplicationRefreshEndpoint(AppContextRefresher contextRefresher) {
this.contextRefresher = contextRefresher;
}
@WriteOperation
public Collection refresh() {
Set keys = this.contextRefresher.refresh();
return keys;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy