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

org.daisy.dotify.api.embosser.FileFormatProvider Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package org.daisy.dotify.api.embosser;

import org.daisy.dotify.api.factory.FactoryProperties;
import org.daisy.dotify.api.factory.Provider;

/**
 * @author Bert Frees
 */
public interface FileFormatProvider extends Provider {

    /**
     * 

Informs the implementation that it was discovered and instantiated using * information collected from a file within the META-INF/services directory. * In other words, it was created using SPI (service provider interfaces).

* *

This information, in turn, enables the implementation to use the same mechanism * to set dependencies as needed.

* *

If this information is not given, an implementation * should avoid using SPIs and instead use * declarative services * for dependency injection as specified by OSGi. Note that this also applies to * several newInstance() methods in the Java API.

* *

The class that created an instance with SPI must call this method before * putting it to use.

*/ public void setCreatedWithSPI(); /** * Creates a new file format with the specified identifier. * * @param identifier the identifier * @return returns a new file format */ public FileFormat newFactory(String identifier); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy