You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2019/06/18 15:33:02 UTC

[GitHub] [camel-k-runtime] lburgazzoli commented on a change in pull request #83: Experimental IDE auto-completion using grape

lburgazzoli commented on a change in pull request #83: Experimental IDE auto-completion using grape
URL: https://github.com/apache/camel-k-runtime/pull/83#discussion_r294888908
 
 

 ##########
 File path: camel-k-runtime-groovy/src/main/groovy/org/apache/camel/k/groovy/Builder.groovy
 ##########
 @@ -0,0 +1,282 @@
+package org.apache.camel.k.groovy
+
+import org.apache.camel.CamelContext
+import org.apache.camel.Endpoint
+import org.apache.camel.Expression
+import org.apache.camel.NoSuchEndpointException
+import org.apache.camel.builder.*
+import org.apache.camel.model.*
+import org.apache.camel.model.rest.RestConfigurationDefinition
+import org.apache.camel.model.rest.RestDefinition
+import org.apache.camel.model.rest.RestsDefinition
+import org.apache.camel.support.builder.Namespaces
+
+class Builder {
+
+    static RouteBuilder delegate
+
+    static void configure() throws Exception {
+        delegate.configure();
+    }
+
+    static void bindToRegistry(String id, Object bean) {
+        delegate.bindToRegistry(id, bean);
+    }
+
+    static void bindToRegistry(String id, Class<?> type, Object bean) {
+        delegate.bindToRegistry(id, type, bean);
+    }
+
+    static RestConfigurationDefinition restConfiguration() {
+        return delegate.restConfiguration();
+    }
+
+    static RestConfigurationDefinition restConfiguration(String component) {
+        return delegate.restConfiguration(component);
+    }
+
+    static RestDefinition rest() {
+        return delegate.rest();
+    }
+
+    static RestDefinition rest(String path) {
+        return delegate.rest(path);
+    }
+
+    static TransformerBuilder transformer() {
+        return delegate.transformer();
+    }
+
+    static ValidatorBuilder validator() {
+        return delegate.validator();
+    }
+
+    static RouteDefinition from(String uri) {
+        return delegate.from(uri);
+    }
+
+    static RouteDefinition fromF(String uri, Object... args) {
+        return delegate.fromF(uri, args);
+    }
+
+    static RouteDefinition from(Endpoint endpoint) {
+        return delegate.from(endpoint);
+    }
+
+    static void errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {
+        delegate.errorHandler(errorHandlerBuilder);
+    }
+
+    static <T> T propertyInject(String key, Class<T> type) throws Exception {
+        return delegate.propertyInject(key, type);
+    }
+
+    static InterceptDefinition intercept() {
+        return delegate.intercept();
+    }
+
+    static InterceptFromDefinition interceptFrom() {
+        return delegate.interceptFrom();
+    }
+
+    static InterceptFromDefinition interceptFrom(String uri) {
+        return delegate.interceptFrom(uri);
+    }
+
+    static InterceptSendToEndpointDefinition interceptSendToEndpoint(String uri) {
+        return delegate.interceptSendToEndpoint(uri);
+    }
+
+    static OnExceptionDefinition onException(Class<? extends Throwable> exception) {
+        return delegate.onException(exception);
+    }
+
+    static OnExceptionDefinition onException(Class<? extends Throwable>... exceptions) {
+        return delegate.onException(exceptions);
+    }
+
+    static OnCompletionDefinition onCompletion() {
+        return delegate.onCompletion();
+    }
+
+    static void addRoutesToCamelContext(CamelContext context) throws Exception {
+        delegate.addRoutesToCamelContext(context);
+    }
+
+    static RoutesDefinition configureRoutes(CamelContext context) throws Exception {
 
 Review comment:
   this and a bunch of other methods should not be visible

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services