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

org.daisy.dotify.api.tasks.TaskSystemFactoryMakerService Maven / Gradle / Ivy

The newest version!
package org.daisy.dotify.api.tasks;

/**
 * 

* Provides an interface for a TaskSystemFactoryMaker service. The purpose of * this interface is to expose an implementation of a TaskSystemFactoryMaker as * an OSGi service. *

* *

* To comply with this interface, an implementation must be thread safe and * address both the possibility that only a single instance is created and used * throughout and that new instances are created as desired. *

* * @author Joel Håkansson * */ public interface TaskSystemFactoryMakerService { /** * Gets a TaskSystemFactory that supports the specified locale and format. * * @param inputFormat the input file format * @param outputFormat the output file format * @param locale the target locale * @return returns a task system factory for the specified locale and format * @throws TaskSystemFactoryException if a factory cannot be returned */ public TaskSystemFactory getFactory(String inputFormat, String outputFormat, String locale) throws TaskSystemFactoryException; /** * Gets a task system for the specified output format and context * @param inputFormat the input file format * @param outputFormat the output file format * @param locale the target locale * @return returns a task system for the specified locale and format * @throws TaskSystemFactoryException if a task system cannot be returned */ public TaskSystem newTaskSystem(String inputFormat, String outputFormat, String locale) throws TaskSystemFactoryException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy