You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/03/04 08:58:16 UTC
[camel] 31/32: Generate service file using @JdkService for
DefaultRestRegistryFactory
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 8405dc80b5dfd06f9f9d2599ec20c68bd9517751
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed Mar 4 09:08:48 2020 +0100
Generate service file using @JdkService for DefaultRestRegistryFactory
---
.../services/org/apache/camel/rest-registry-factory | 2 ++
.../component/rest/DefaultRestRegistryFactory.java | 2 ++
.../services/org/apache/camel/rest-registry-factory | 19 -------------------
3 files changed, 4 insertions(+), 19 deletions(-)
diff --git a/components/camel-rest/src/generated/resources/META-INF/services/org/apache/camel/rest-registry-factory b/components/camel-rest/src/generated/resources/META-INF/services/org/apache/camel/rest-registry-factory
new file mode 100644
index 0000000..1c31008
--- /dev/null
+++ b/components/camel-rest/src/generated/resources/META-INF/services/org/apache/camel/rest-registry-factory
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.rest.DefaultRestRegistryFactory
diff --git a/components/camel-rest/src/main/java/org/apache/camel/component/rest/DefaultRestRegistryFactory.java b/components/camel-rest/src/main/java/org/apache/camel/component/rest/DefaultRestRegistryFactory.java
index b85efae..5094b0e 100644
--- a/components/camel-rest/src/main/java/org/apache/camel/component/rest/DefaultRestRegistryFactory.java
+++ b/components/camel-rest/src/main/java/org/apache/camel/component/rest/DefaultRestRegistryFactory.java
@@ -18,7 +18,9 @@ package org.apache.camel.component.rest;
import org.apache.camel.spi.RestRegistry;
import org.apache.camel.spi.RestRegistryFactory;
+import org.apache.camel.spi.annotations.JdkService;
+@JdkService(RestRegistryFactory.FACTORY)
public class DefaultRestRegistryFactory implements RestRegistryFactory {
@Override
diff --git a/components/camel-rest/src/main/resources/META-INF/services/org/apache/camel/rest-registry-factory b/components/camel-rest/src/main/resources/META-INF/services/org/apache/camel/rest-registry-factory
deleted file mode 100644
index 2ec9069..0000000
--- a/components/camel-rest/src/main/resources/META-INF/services/org/apache/camel/rest-registry-factory
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-class=org.apache.camel.component.rest.DefaultRestRegistryFactory
-