Jonathan Hart | 039d2b1 | 2014-10-10 09:33:04 -0700 | [diff] [blame] | 1 | package org.onlab.onos.sdnip; |
| 2 | |
| 3 | import static org.slf4j.LoggerFactory.getLogger; |
| 4 | |
| 5 | import org.apache.felix.scr.annotations.Activate; |
| 6 | import org.apache.felix.scr.annotations.Component; |
| 7 | import org.apache.felix.scr.annotations.Deactivate; |
Jonathan Hart | bac07a0 | 2014-10-13 21:29:54 -0700 | [diff] [blame^] | 8 | import org.onlab.onos.sdnip.config.SdnIpConfigReader; |
Jonathan Hart | 039d2b1 | 2014-10-10 09:33:04 -0700 | [diff] [blame] | 9 | import org.slf4j.Logger; |
| 10 | |
| 11 | /** |
| 12 | * Placeholder SDN-IP component. |
| 13 | */ |
| 14 | @Component(immediate = true) |
| 15 | public class SdnIp { |
| 16 | |
| 17 | private final Logger log = getLogger(getClass()); |
| 18 | |
Jonathan Hart | bac07a0 | 2014-10-13 21:29:54 -0700 | [diff] [blame^] | 19 | private SdnIpConfigReader config; |
| 20 | |
Jonathan Hart | 039d2b1 | 2014-10-10 09:33:04 -0700 | [diff] [blame] | 21 | @Activate |
| 22 | protected void activate() { |
| 23 | log.debug("SDN-IP started"); |
Jonathan Hart | bac07a0 | 2014-10-13 21:29:54 -0700 | [diff] [blame^] | 24 | |
| 25 | config = new SdnIpConfigReader(); |
| 26 | config.init(); |
Jonathan Hart | 039d2b1 | 2014-10-10 09:33:04 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | @Deactivate |
| 30 | protected void deactivate() { |
| 31 | log.info("Stopped"); |
| 32 | } |
| 33 | } |