You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2008/05/25 08:25:56 UTC
svn commit: r659925 -
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
Author: ningjiang
Date: Sat May 24 23:25:55 2008
New Revision: 659925
URL: http://svn.apache.org/viewvc?rev=659925&view=rev
Log:
Fixed the FileEndpoint CS errors
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java?rev=659925&r1=659924&r2=659925&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java Sat May 24 23:25:55 2008
@@ -41,9 +41,9 @@
*/
public class FileEndpoint extends ScheduledPollEndpoint<FileExchange> {
private static final transient Log LOG = LogFactory.getLog(FileEndpoint.class);
- private static final String DEFAULT_STRATEGYFACTORY_CLASS =
- "org.apache.camel.component.file.strategy.FileProcessStrategyFactory";
-
+ private static final String DEFAULT_STRATEGYFACTORY_CLASS =
+ "org.apache.camel.component.file.strategy.FileProcessStrategyFactory";
+
private File file;
private FileProcessStrategy fileProcessStrategy;
private boolean autoCreate = true;
@@ -276,15 +276,15 @@
* A strategy method to lazily create the file strategy
*/
protected FileProcessStrategy createFileStrategy() {
- Class factory = null;
- try {
+ Class factory = null;
+ try {
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/camel/component/");
- factory = finder.findClass("file", "strategy.factory.");
- } catch (ClassNotFoundException e) {
+ factory = finder.findClass("file", "strategy.factory.");
+ } catch (ClassNotFoundException e) {
LOG.debug("'strategy.factory.class' not found", e);
} catch (IOException e) {
LOG.debug("No strategy factory defined in 'META-INF/services/org/apache/camel/component/file'", e);
- }
+ }
if (factory == null) {
// use default
@@ -298,7 +298,7 @@
Method factoryMethod = factory.getMethod("createFileProcessStrategy", Properties.class);
return (FileProcessStrategy) ObjectHelper.invokeMethod(factoryMethod, null, getParamsAsProperties());
} catch (NoSuchMethodException e) {
- throw new TypeNotPresentException(factory.getSimpleName()
+ throw new TypeNotPresentException(factory.getSimpleName()
+ ".createFileProcessStrategy(Properties params) method not found", e);
}
}