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

com.fluxtion.builder.time.ClockFactory Maven / Gradle / Ivy

/*
 * Copyright (C) 2019 V12 Technology Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Server Side Public License, version 1,
 * as published by MongoDB, Inc.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * Server Side License for more details.
 *
 * You should have received a copy of the Server Side Public License
 * along with this program.  If not, see 
 * .
 */
package com.fluxtion.builder.time;

import com.fluxtion.api.time.Clock;
import com.fluxtion.builder.node.NodeFactory;
import com.fluxtion.builder.node.NodeRegistry;
import java.util.Map;

/**
 *
 * @author V12 Technology Ltd.
 */
//@AutoService(NodeFactory.class)
public class ClockFactory implements NodeFactory {

    public static final Clock SINGLETON = new Clock();

    @Override
    public Clock createNode(Map config, NodeRegistry registry) {
        registry.registerAuditor(SINGLETON, "clock");
        return SINGLETON;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy