Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Auto-generated by OnosSwaggerMojo. |
| 3 | * |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 4 | * Copyright 2016-present Open Networking Foundation |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | */ |
| 18 | package ${api.package}; |
| 19 | |
| 20 | import org.apache.felix.scr.annotations.Component; |
| 21 | import org.onosproject.rest.AbstractApiDocRegistrator; |
| 22 | import org.onosproject.rest.ApiDocProvider; |
| 23 | |
| 24 | @Component(immediate = true) |
| 25 | public class ApiDocRegistrator extends AbstractApiDocRegistrator { |
| 26 | public ApiDocRegistrator() { |
| 27 | super(new ApiDocProvider("${web.context}", |
| 28 | "${api.title}", |
| 29 | ApiDocRegistrator.class.getClassLoader())); |
| 30 | } |
| 31 | } |