Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "service",
"title": "Service",
"description": "Register a Camel endpoint to a Service Registry (such as Consul, Etcd) and delegate to it.",
"deprecated": false,
"deprecated": true,
"firstVersion": "2.22.0",
"label": "cloud",
"javaType": "org.apache.camel.component.service.ServiceComponent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "service",
"title": "Service",
"description": "Register a Camel endpoint to a Service Registry (such as Consul, Etcd) and delegate to it.",
"deprecated": false,
"deprecated": true,
"firstVersion": "2.22.0",
"label": "cloud",
"javaType": "org.apache.camel.component.service.ServiceComponent",
Expand Down
5 changes: 3 additions & 2 deletions components/camel-service/src/main/docs/service-component.adoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
= Service Component
= Service Component (deprecated)
:doctitle: Service
:shortname: service
:artifactid: camel-service
:description: Register a Camel endpoint to a Service Registry (such as Consul, Etcd) and delegate to it.
:since: 2.22
:supportlevel: Stable
:supportlevel: Stable-deprecated
:deprecated: *deprecated*
:tabs-sync-option:
:component-header: Only consumer is supported
//Manually maintained attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.apache.camel.util.URISupport;

@Component("service")
@Deprecated(since = "4.8.0")
public class ServiceComponent extends DefaultComponent {
@Metadata(label = "advanced")
private ServiceRegistry service;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.slf4j.LoggerFactory;

@ManagedResource(description = "Managed Service Consumer")
@Deprecated(since = "4.8.0")
public class ServiceConsumer extends DefaultConsumer {
private static final transient Logger LOG = LoggerFactory.getLogger(ServiceConsumer.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
title = "Service",
lenientProperties = true,
category = { Category.CLOUD })
@Deprecated(since = "4.8.0")
public class ServiceEndpoint extends DefaultEndpoint implements DelegateEndpoint {
private final Endpoint delegateEndpoint;
private final ServiceRegistry serviceRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14045,6 +14045,7 @@ public static SedaEndpointBuilderFactory.SedaEndpointBuilder seda(String compone
* @param path delegateUri
* @return the dsl builder
*/
@Deprecated
public static ServiceEndpointBuilderFactory.ServiceEndpointBuilder service(String path) {
return service("service", path);
}
Expand All @@ -14067,6 +14068,7 @@ public static ServiceEndpointBuilderFactory.ServiceEndpointBuilder service(Strin
* @param path delegateUri
* @return the dsl builder
*/
@Deprecated
public static ServiceEndpointBuilderFactory.ServiceEndpointBuilder service(String componentName, String path) {
return ServiceEndpointBuilderFactory.endpointBuilder(componentName, path);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public interface ServiceBuilders {
* @param path delegateUri
* @return the dsl builder
*/
@Deprecated
default ServiceEndpointBuilder service(String path) {
return ServiceEndpointBuilderFactory.endpointBuilder("service", path);
}
Expand All @@ -216,6 +217,7 @@ default ServiceEndpointBuilder service(String path) {
* @param path delegateUri
* @return the dsl builder
*/
@Deprecated
default ServiceEndpointBuilder service(String componentName, String path) {
return ServiceEndpointBuilderFactory.endpointBuilder(componentName, path);
}
Expand Down