Repository: camel Updated Branches: refs/heads/master cc4ccd4d6 -> b70a69fd1
CAMEL-10685: More generic CDI route builder class name Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b70a69fd Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b70a69fd Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b70a69fd Branch: refs/heads/master Commit: b70a69fd107fe26fe50070d727acbac73a70170d Parents: ed0bae4 Author: Antonin Stefanutti <anto...@stefanutti.fr> Authored: Thu Apr 13 16:46:07 2017 +0200 Committer: Antonin Stefanutti <anto...@stefanutti.fr> Committed: Thu Apr 13 16:52:19 2017 +0200 ---------------------------------------------------------------------- .../org/apache/camel/cdi/CdiRouteBuilder.java | 39 +++++++++++++++++++ .../org/apache/camel/cdi/JtaRouteBuilder.java | 40 -------------------- 2 files changed, 39 insertions(+), 40 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/b70a69fd/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiRouteBuilder.java ---------------------------------------------------------------------- diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiRouteBuilder.java b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiRouteBuilder.java new file mode 100644 index 0000000..4c4e445 --- /dev/null +++ b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiRouteBuilder.java @@ -0,0 +1,39 @@ +/** + * 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. + */ +package org.apache.camel.cdi; + +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.cdi.transaction.JtaTransactionErrorHandlerBuilder; + +/** + * An extension of the {@link RouteBuilder} to provide some additional helper + * methods + * + * @version + */ +public abstract class CdiRouteBuilder extends RouteBuilder { + + /** + * Creates a transaction error handler that will lookup in application + * context for an exiting transaction manager. + * + * @return the created error handler + */ + public JtaTransactionErrorHandlerBuilder transactionErrorHandler() { + return new JtaTransactionErrorHandlerBuilder(); + } +} http://git-wip-us.apache.org/repos/asf/camel/blob/b70a69fd/components/camel-cdi/src/main/java/org/apache/camel/cdi/JtaRouteBuilder.java ---------------------------------------------------------------------- diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/JtaRouteBuilder.java b/components/camel-cdi/src/main/java/org/apache/camel/cdi/JtaRouteBuilder.java deleted file mode 100644 index 3180ae1..0000000 --- a/components/camel-cdi/src/main/java/org/apache/camel/cdi/JtaRouteBuilder.java +++ /dev/null @@ -1,40 +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. - */ -package org.apache.camel.cdi; - -import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.cdi.transaction.JtaTransactionErrorHandlerBuilder; - -/** - * An extension of the {@link RouteBuilder} to provide some additional helper - * methods - * - * @version - */ -public abstract class JtaRouteBuilder extends RouteBuilder { - - /** - * Creates a transaction error handler that will lookup in application - * context for an exiting transaction manager. - * - * @return the created error handler - */ - public JtaTransactionErrorHandlerBuilder transactionErrorHandler() { - return new JtaTransactionErrorHandlerBuilder(); - } - -}