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

com.sun.webkit.EventLoop Maven / Gradle / Ivy

/*
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
 */
package com.sun.webkit;

import java.util.logging.Level;
import java.util.logging.Logger;

public abstract class EventLoop {

    private static final Logger logger =
            Logger.getLogger(EventLoop.class.getName());

    private static EventLoop instance;


    public static void setEventLoop(EventLoop eventLoop) {
        instance = eventLoop;
    }

    private static void fwkCycle() {
        logger.log(Level.FINE, "Executing event loop cycle");
        instance.cycle();
    }

    protected abstract void cycle();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy