1bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook/*
2bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * Copyright (C) 2014 The Android Open Source Project
3bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook *
4bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * Licensed under the Apache License, Version 2.0 (the "License");
5bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * you may not use this file except in compliance with the License.
6bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * You may obtain a copy of the License at
7bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook *
8bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook *      http://www.apache.org/licenses/LICENSE-2.0
9bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook *
10bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * Unless required by applicable law or agreed to in writing, software
11bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * distributed under the License is distributed on an "AS IS" BASIS,
12bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * See the License for the specific language governing permissions and
14bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook * limitations under the License.
15bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook */
16bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook
17bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrookpackage com.android.email;
18bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook
19bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrookimport android.content.Context;
20bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook
21bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrookpublic class NotificationControllerCreatorHolder {
22bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    private static NotificationControllerCreator sCreator =
23bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook            new NotificationControllerCreator() {
24bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook                @Override
25bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook                public NotificationController getInstance(Context context){
26bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook                    return null;
27bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook                }
28bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook            };
29bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook
30bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    public static void setNotificationControllerCreator(
31bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook            NotificationControllerCreator creator) {
32bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook        sCreator = creator;
33bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    }
34bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook
35bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    public static NotificationControllerCreator getNotificationControllerCreator() {
36bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook        return sCreator;
37bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    }
38bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook
39bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    public static NotificationController getInstance(Context context) {
40bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook        return getNotificationControllerCreator().getInstance(context);
41bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook    }
42bb68c13afa630cae058eb40d3ce68644f3f3c8b9Paul Westbrook}