SchemaServiceFactory.java 890 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xmp.schema.service;

import com.adobe.xmp.schema.service.RelaxNGProvider;
import com.adobe.xmp.schema.service.SchemaCache;
import com.adobe.xmp.schema.service.SchemaService;
import com.adobe.xmp.schema.service.SchemaServiceException;
import com.adobe.xmp.schema.service.StandardRelaxNGProvider;
import com.adobe.xmp.schema.service.defaults.DefaultSchemaCache;
import com.adobe.xmp.schema.service.impl.SchemaServiceImpl;

public class SchemaServiceFactory {
    public static SchemaService createInstance(RelaxNGProvider provider, SchemaCache cache) throws SchemaServiceException {
        return new SchemaServiceImpl(provider, cache);
    }

    public static SchemaService createDefaultInstance() throws SchemaServiceException {
        return new SchemaServiceImpl(new StandardRelaxNGProvider(), new DefaultSchemaCache());
    }
}