Repository: camel
Updated Branches:
  refs/heads/feature/CAMEL-11335-routes-endpoint 2a05c3b74 -> 41a3b4bed


CAMEL-11335: Extend from AbstractEndpoint instead of implementing Endpoint

Signed-off-by: Gregor Zurowski <gre...@zurowski.org>


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

Branch: refs/heads/feature/CAMEL-11335-routes-endpoint
Commit: 41a3b4beddd971d716cf65cf72b4d7129ea2292a
Parents: 2a05c3b
Author: Gregor Zurowski <gre...@zurowski.org>
Authored: Fri May 26 10:12:30 2017 +0200
Committer: Gregor Zurowski <gre...@zurowski.org>
Committed: Fri May 26 10:12:30 2017 +0200

----------------------------------------------------------------------
 .../actuate/endpoint/CamelRoutesEndpoint.java   | 21 ++++----------------
 1 file changed, 4 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/41a3b4be/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 a110149..9fa81c2 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
@@ -25,37 +25,24 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
 import org.apache.camel.CamelContext;
 import org.apache.camel.Route;
 import 
org.apache.camel.spring.boot.actuate.endpoint.CamelRoutesEndpoint.RouteEndpointInfo;
+import org.springframework.boot.actuate.endpoint.AbstractEndpoint;
 import org.springframework.boot.actuate.endpoint.Endpoint;
 
 /**
  * {@link Endpoint} to expose {@link org.apache.camel.Route} information.
  */
-public class CamelRoutesEndpoint implements Endpoint<List<RouteEndpointInfo>> {
+public class CamelRoutesEndpoint extends 
AbstractEndpoint<List<RouteEndpointInfo>> {
 
-    private static final String ENDPONT_ID = "camelroutes";
+    private static final String ENDPOINT_ID = "camelroutes";
 
     private CamelContext camelContext;
 
     public CamelRoutesEndpoint(CamelContext camelContext) {
+        super(ENDPOINT_ID);
         this.camelContext = camelContext;
     }
 
     @Override
-    public String getId() {
-        return ENDPONT_ID;
-    }
-
-    @Override
-    public boolean isEnabled() {
-        return true;
-    }
-
-    @Override
-    public boolean isSensitive() {
-        return true;
-    }
-
-    @Override
     public List<RouteEndpointInfo> invoke() {
         // @formatter:off
         return camelContext.getRoutes().stream()

Reply via email to