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