Skip to content

Commit

Permalink
CAMEL-276 applied the patch for stream component
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/activemq/camel/trunk@612742 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
WillemJiang committed Jan 17, 2008
1 parent 177ecf2 commit 078358f
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 3 deletions.
8 changes: 6 additions & 2 deletions apache-camel/pom.xml
Expand Up @@ -153,6 +153,10 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-stream</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-stringtemplate</artifactId>
Expand Down Expand Up @@ -261,8 +265,8 @@
camel-http,camel-ibatis,camel-irc,camel-jaxb,camel-jdbc,camel-jing,camel-jms,
camel-jhc,camel-josql,camel-juel,camel-jetty,camel-jcr,
camel-jpa,camel-mail,camel-mina,camel-msv,camel-ognl,camel-quartz,camel-rmi,
camel-saxon,camel-script,camel-spring,camel-stringtemplate,camel-velocity,
camel-xmlbeans,camel-xmpp,commons-logging</includes>
camel-saxon,camel-script,camel-spring,camel-stringtemplate, camel-stream,
camel-velocity,camel-xmlbeans,camel-xmpp,commons-logging</includes>
</configuration>
</execution>
</executions>
Expand Down
68 changes: 68 additions & 0 deletions components/camel-stream/pom.xml
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
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.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.camel</groupId>
<artifactId>camel-stream</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Camel :: Stream</name>
<description>Camel Stream (System.in, System.out, System.err) support</description>

<parent>
<groupId>org.apache.camel</groupId>
<artifactId>camel-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>

<dependencies>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<type>test-jar</type>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jms</artifactId>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
<type>test-jar</type>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
@@ -0,0 +1,24 @@
/**
*
* 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.stream;

public class ConsumingException extends Exception {
public ConsumingException(Throwable t) {
super(t);
}
}
@@ -0,0 +1,25 @@
/**
*
* 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.stream;


public interface InputStreamHandler {

public void consume() throws ConsumingException;

}
3 changes: 2 additions & 1 deletion components/pom.xml
Expand Up @@ -66,11 +66,12 @@
<module>camel-script</module>
<module>camel-spring</module>
<module>camel-stringtemplate</module>
<module>camel-stream</module>
<!--<module>camel-supercsv</module>-->
<module>camel-velocity</module>
<module>camel-xmlbeans</module>
<module>camel-xmpp</module>
<module>camel-xstream</module>
<module>camel-xstream</module>
</modules>

</project>

0 comments on commit 078358f

Please sign in to comment.