tom | c1a38d3 | 2014-08-25 23:01:32 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.provider; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 2 | |
| 3 | /** |
| 4 | * Abstraction of a service through which providers can inject information |
| 5 | * about the network environment into the core. |
tom | 64b7aac | 2014-08-26 00:18:21 -0700 | [diff] [blame] | 6 | * |
| 7 | * @param <P> type of the information provider |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 8 | */ |
tom | 64b7aac | 2014-08-26 00:18:21 -0700 | [diff] [blame] | 9 | public interface ProviderService<P extends Provider> { |
| 10 | |
| 11 | /** |
| 12 | * Returns the provider to which this service has been issued. |
| 13 | * |
| 14 | * @return provider to which this service has been assigned |
| 15 | */ |
| 16 | P provider(); |
| 17 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 18 | } |