camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Boillod (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-4004) Permit to override creation of FileConsumer in FileEndPoint
Date Mon, 23 May 2011 09:19:48 GMT
Permit to override creation of FileConsumer in FileEndPoint
-----------------------------------------------------------

                 Key: CAMEL-4004
                 URL: https://issues.apache.org/jira/browse/CAMEL-4004
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.7.1
            Reporter: Manuel Boillod


The method FileEndPoint.createConsumer does not permit to override type of FileConsumer. I
would use a specific FileConsumer which override prePollCheck method.

This will be possible in simply externalize method which create FileConsumer in the body of
createConsumer :

> FileConsumer result = new FileConsumer(this, processor, operations);

could be refactor in :

> FileConsumer result = newFileConsumer(this, processor, operations);
> protected FileConsumer newFileConsumer(GenericFileEndpoint<File> endpoint, Processor
processor, GenericFileOperations<File> operations){
>   return new FileConsumer(endpoint, processor, operations)
> }


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message