CAMEL-7792 Throw the UnsupportedOperationException when create the producer of JIRAComponent
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/88cc247e
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/88cc247e
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/88cc247e
Branch: refs/heads/master
Commit: 88cc247edf7af15618dae26d4bf38b22621309a8
Parents: e0ac64d
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Sun Sep 21 20:01:21 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Sun Sep 21 20:01:37 2014 +0800
----------------------------------------------------------------------
.../camel/component/jira/JIRAEndpoint.java | 2 +-
.../camel/component/jira/JIRAProducer.java | 35 --------------------
2 files changed, 1 insertion(+), 36 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/88cc247e/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
index 1365a73..350307c 100644
--- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
+++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
@@ -56,7 +56,7 @@ public class JIRAEndpoint extends DefaultEndpoint {
}
public Producer createProducer() throws Exception {
- return new JIRAProducer(this);
+ throw new UnsupportedOperationException("JIRAProducer is not implemented");
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/88cc247e/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAProducer.java
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAProducer.java
deleted file mode 100644
index 55d11c2..0000000
--- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAProducer.java
+++ /dev/null
@@ -1,35 +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.component.jira;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.impl.DefaultProducer;
-
-/**
- * The Camel :: JIRA producer.
- */
-public class JIRAProducer extends DefaultProducer {
-
- public JIRAProducer(final JIRAEndpoint endpoint) {
- super(endpoint);
- }
-
- public void process(final Exchange exchange) throws Exception {
- // nothing to do, yet
- }
-
-}
|