/*
 * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
 */
package kr.co.zumo.app.lifeplus.model;

import android.content.Context;
import android.preference.PreferenceManager;

/**
 * SuperModelInit
 * <pre>
 * </pre>
 *
 * @author 민효동
 * @version 1.0
 * @history 민효동   [2018-09-23]   [최초 작성]
 * @since 2018-09-23
 */
public class SuperModelInit {
  /**
   * LifeplusPreferences 생성자를 package-private 으로 설정하여 패키지 외부에서 SuperModel 을 init 할 수 없다.
   * 외부에서 접근하도록 감싸준다.
   *
   * @param context ApplicationContext
   */
  public static void init(Context context) {
    SuperModel.getInstance().init(new LifeplusPreferences(new BaseSharedPreferences(PreferenceManager.getDefaultSharedPreferences(context))));
  }
}
