Package com.hubspot.singularity.s3downloader.config

Source Code of com.hubspot.singularity.s3downloader.config.ArtifactManagerProvider

package com.hubspot.singularity.s3downloader.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;
import com.google.inject.Provider;
import com.hubspot.singularity.s3.base.ArtifactManager;
import com.hubspot.singularity.s3.base.config.SingularityS3Configuration;

public class ArtifactManagerProvider implements Provider<ArtifactManager> {

  private final Logger log;
  private final SingularityS3Configuration s3Configuration;

  @Inject
  public ArtifactManagerProvider(SingularityS3Configuration s3Configuration) {
    this.log = LoggerFactory.getLogger(ArtifactManager.class);
    this.s3Configuration = s3Configuration;
  }

  @Override
  public ArtifactManager get() {
    return new ArtifactManager(s3Configuration, log);
  }

}
TOP

Related Classes of com.hubspot.singularity.s3downloader.config.ArtifactManagerProvider

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.