Package com.adobe.xmp.schema.service
Class SchemaServiceFactory
- java.lang.Object
-
- com.adobe.xmp.schema.service.SchemaServiceFactory
-
public class SchemaServiceFactory extends Object
Factory to create instances ofSchemaService
-
-
Constructor Summary
Constructors Constructor Description SchemaServiceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaService
createDefaultInstance()
Creates the default instance ofSchemaService
.static SchemaService
createInstance(RelaxNGProvider provider, SchemaCache cache)
Creates an instance ofSchemaService
that is configured with custom provider, cache and prefix mapping implementations.
-
-
-
Method Detail
-
createInstance
public static SchemaService createInstance(RelaxNGProvider provider, SchemaCache cache) throws SchemaServiceException
Creates an instance ofSchemaService
that is configured with custom provider, cache and prefix mapping implementations.- Parameters:
provider
- an instance ofRelaxNGProvider
cache
- an instance ofSchemaCache
- Returns:
- Returns a configured instance of
SchemaService
. - Throws:
SchemaServiceException
- Thrown if parameters are null or initialization fails.
-
createDefaultInstance
public static SchemaService createDefaultInstance() throws SchemaServiceException
Creates the default instance ofSchemaService
. It provides the schemas that are included in the library.- Returns:
- Returns an instance of the default
SchemaService
- Throws:
SchemaServiceException
- Thrown if initialization fails.
-
-