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

es.webbeta.serializer.MetadataAccesorProvider Maven / Gradle / Ivy

The newest version!
package es.webbeta.serializer;

import com.google.inject.Provider;
import es.webbeta.serializer.base.MetadataAccessor;
import play.Environment;

import javax.inject.Inject;

public class MetadataAccesorProvider implements Provider {

    @Inject
    private SerializerCache cache;

    @Inject
    private SerializerConfigurationProvider configurationProvider;

    @Inject
    private Environment environment;

    @Override
    public MetadataAccessor get() {
        return new ConfigurationManager(configurationProvider, () -> environment.isProd(), cache)
                .getMetadataAccessor();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy