camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lburgazz...@apache.org
Subject [2/3] camel git commit: CamelRoutesEndpoint : add prefix so the endpoint can be enabled/disabled
Date Wed, 05 Jul 2017 12:33:41 GMT
CamelRoutesEndpoint : add prefix so the endpoint can be enabled/disabled


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ecd02ea8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ecd02ea8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ecd02ea8

Branch: refs/heads/master
Commit: ecd02ea80a416deddc059ab9f2f67ea938266420
Parents: a16f815
Author: lburgazzoli <lburgazzoli@gmail.com>
Authored: Wed Jul 5 14:32:41 2017 +0200
Committer: lburgazzoli <lburgazzoli@gmail.com>
Committed: Wed Jul 5 14:32:41 2017 +0200

----------------------------------------------------------------------
 .../camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ecd02ea8/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
index a2a8b06..a131ed1 100644
--- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
+++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
@@ -28,13 +28,15 @@ import org.apache.camel.StatefulService;
 import org.apache.camel.spring.boot.actuate.endpoint.CamelRoutesEndpoint.RouteEndpointInfo;
 import org.springframework.boot.actuate.endpoint.AbstractEndpoint;
 import org.springframework.boot.actuate.endpoint.Endpoint;
+import org.springframework.boot.context.properties.ConfigurationProperties;
 
 /**
  * {@link Endpoint} to expose {@link org.apache.camel.Route} information.
  */
+@ConfigurationProperties(prefix = "endpoints." + CamelRoutesEndpoint.ENDPOINT_ID)
 public class CamelRoutesEndpoint extends AbstractEndpoint<List<RouteEndpointInfo>>
{
 
-    private static final String ENDPOINT_ID = "camelroutes";
+    public static final String ENDPOINT_ID = "camelroutes";
 
     private CamelContext camelContext;
 


Mime
View raw message