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

de.rpgframework.jfx.attach.PDFViewerServiceFactory Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package de.rpgframework.jfx.attach;

import java.util.Optional;
import java.util.ServiceLoader;

public class PDFViewerServiceFactory {

	private static Optional instance;

	public static Optional create() {
		if (instance==null) {
			instance = ServiceLoader.load(PDFViewerService.class).findFirst();
		}
        return instance;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy