aboutsummaryrefslogtreecommitdiff
path: root/libs/utils/WordPressUtils/src/main/java/org/wordpress/android/util/SystemServiceFactory.java
blob: e3fee7fc33b742c94381b6e250ddad4da6cf237b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package org.wordpress.android.util;

import android.content.Context;

public class SystemServiceFactory {
    private static SystemServiceFactoryAbstract sFactory;

    public static Object get(Context context, String name) {
        if (sFactory == null) {
            sFactory = new SystemServiceFactoryDefault();
        }
        return sFactory.get(context, name);
    }
}