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

com.emc.ia.sdk.configurer.InfoArchiveConfigurers Maven / Gradle / Ivy

/*
 * Copyright (c) 2016 EMC Corporation. All Rights Reserved.
 */
package com.emc.ia.sdk.configurer;

import java.util.Map;

import com.emc.ia.sdk.support.datetime.Clock;
import com.emc.ia.sdk.support.datetime.DefaultClock;
import com.emc.ia.sdk.support.rest.RestClient;


/**
 * Factory methods for creating InfoArchiveConfigurers.
 */
public final class InfoArchiveConfigurers {

  private InfoArchiveConfigurers() {
  }

  public static InfoArchiveConfigurer propertyBased(Map configuration) {
    return propertyBased(configuration, null);
  }

  public static InfoArchiveConfigurer propertyBased(Map configuration, RestClient restClient) {
    return propertyBased(configuration, restClient, new DefaultClock());
  }

  public static InfoArchiveConfigurer propertyBased(Map configuration, RestClient restClient,
      Clock clock) {
    return new PropertyBasedConfigurer(restClient, clock, configuration);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy