2 * Copyright 2018 Google
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #import <Foundation/Foundation.h>
18 #import "FIRComponent.h"
19 #import "FIRComponentContainer.h"
23 NS_ASSUME_NONNULL_BEGIN
25 @interface FIRComponentContainer (Private)
27 /// Initializes a contain for a given app. This should only be called by the app itself.
28 - (instancetype)initWithApp:(FIRApp *)app;
30 /// Retrieves an instance that conforms to the specified protocol. This will return `nil` if the
31 /// protocol wasn't registered, or if the instance couldn't instantiate for the provided app.
32 - (nullable id)instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:));
34 /// Remove all of the cached instances stored and allow them to clean up after themselves.
35 - (void)removeAllCachedInstances;