io.convergence_platform.services.infrastructure.ServiceState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.services.infrastructure;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import java.util.UUID;
@Component("ServiceStateClass")
public class ServiceState {
@Bean
public static ServiceState serviceState() {
return ServiceState.instance();
}
private static final ServiceState instance = new ServiceState();
public String state = "initializing";
private ServiceState() {
}
public static ServiceState instance() {
return instance;
}
}