ServiceUtil.java 1.2 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.aemfd.docmanager.TempFileManager
 *  com.day.cq.dam.handler.gibson.fontmanager.FontManagerService
 */
package com.adobe.fd.forms.internal.utils;

import com.adobe.aemfd.docmanager.TempFileManager;
import com.day.cq.dam.handler.gibson.fontmanager.FontManagerService;

public class ServiceUtil {
    private static FontManagerService fontManagerService;
    private static TempFileManager tempFileManager;

    public static TempFileManager getTempFileManager() {
        if (tempFileManager != null) {
            return tempFileManager;
        }
        throw new RuntimeException("tempFileManager service unavailable");
    }

    public static void setTempFileManager(TempFileManager _tempFileManager) {
        tempFileManager = _tempFileManager;
    }

    public static FontManagerService getFontManagerService() {
        if (fontManagerService != null) {
            return fontManagerService;
        }
        throw new RuntimeException("fontmanager service unavailable");
    }

    public static void setFontManagerService(FontManagerService _fontManagerService) {
        fontManagerService = _fontManagerService;
    }
}