blob: d6d1e418240af6d0295c43cd8845cf609a0c8a40 [file] [log] [blame]
Dave Mankoff2ea5a832019-07-03 13:26:55 -04001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Dave Mankofff4736812019-10-18 17:25:50 -040017package com.android.systemui.dagger;
Dave Mankoff2ea5a832019-07-03 13:26:55 -040018
Dave Mankoffeb593ae2019-09-04 11:31:55 -040019import android.app.Activity;
Dave Mankoffa4a71362019-08-27 14:40:05 -040020import android.app.Service;
21
Dave Mankofff4736812019-10-18 17:25:50 -040022import com.android.systemui.SystemUI;
23
Dave Mankoff2ea5a832019-07-03 13:26:55 -040024/**
25 * Interface necessary to make Dagger happy. See {@link ContextComponentResolver}.
26 */
27public interface ContextComponentHelper {
28 /** Turns a classname into an instance of the class or returns null. */
Dave Mankoffeb593ae2019-09-04 11:31:55 -040029 Activity resolveActivity(String className);
30
31 /** Turns a classname into an instance of the class or returns null. */
Dave Mankoffa4a71362019-08-27 14:40:05 -040032 Service resolveService(String className);
Dave Mankoffaa8b7ae2019-09-04 18:03:21 -040033
34 /** Turns a classname into an instance of the class or returns null. */
35 SystemUI resolveSystemUI(String className);
Dave Mankoff2ea5a832019-07-03 13:26:55 -040036}