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

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

There is a newer version: 9.7.9
Show newest version
/*
 * Copyright (C) 2019 2024 gregory higgins.
 *
 * 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.compiler.builder.time;

import com.fluxtion.compiler.builder.factory.NodeFactory;
import com.fluxtion.compiler.builder.factory.NodeRegistry;
import com.fluxtion.runtime.time.Clock;

import java.util.Map;

/**
 * @author 2024 gregory higgins.
 */
public class ClockFactory implements NodeFactory {

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy