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

io.convergence_platform.services.infrastructure.ServiceState Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy