OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.services.shell; | 5 package org.chromium.services.shell; |
6 | 6 |
7 import org.chromium.mojo.bindings.Interface; | 7 import org.chromium.mojo.bindings.Interface; |
8 | 8 |
9 /** | 9 /** |
10 * A factory that creates implementations of a mojo interface. | 10 * A factory that creates implementations of a mojo interface. |
11 * | 11 * |
12 * @param <I> the mojo interface | 12 * @param <I> the mojo interface |
13 */ | 13 */ |
14 public interface InterfaceFactory<I extends Interface> { | 14 public interface InterfaceFactory<I extends Interface> { |
15 /** | 15 /** |
16 * Returns an implementation of the mojo interface. | 16 * Returns an implementation of the mojo interface. |
17 */ | 17 */ |
18 I createImpl(); | 18 I createImpl(); |
19 } | 19 } |
OLD | NEW |