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

io.quarkus.tika.runtime.TikaParserProducer Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta1
Show newest version
package io.quarkus.tika.runtime;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;

import io.quarkus.tika.TikaParser;

@ApplicationScoped
public class TikaParserProducer {

    private volatile TikaParser parser;

    void initialize(TikaParser parser) {
        this.parser = parser;
    }

    @Singleton
    @Produces
    public TikaParser tikaParser() {
        return parser;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy