Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame] | 1 | package net.floodlightcontroller.debugcounter.web; |
| 2 | |
| 3 | import net.floodlightcontroller.debugcounter.IDebugCounterService; |
| 4 | |
| 5 | import org.restlet.resource.ResourceException; |
| 6 | import org.restlet.resource.ServerResource; |
| 7 | |
| 8 | public class DebugCounterResourceBase extends ServerResource { |
| 9 | |
| 10 | protected IDebugCounterService debugCounter; |
| 11 | |
| 12 | @Override |
| 13 | protected void doInit() throws ResourceException { |
| 14 | super.doInit(); |
| 15 | debugCounter = (IDebugCounterService)getContext().getAttributes(). |
| 16 | get(IDebugCounterService.class.getCanonicalName()); |
| 17 | } |
| 18 | } |