Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3E2F7B12 for ; Thu, 22 Sep 2011 09:15:50 +0000 (UTC) Received: (qmail 57527 invoked by uid 500); 22 Sep 2011 09:15:48 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 57486 invoked by uid 500); 22 Sep 2011 09:15:48 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 57442 invoked by uid 99); 22 Sep 2011 09:15:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 09:15:48 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 09:15:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8E5C3A8108 for ; Thu, 22 Sep 2011 09:15:26 +0000 (UTC) Date: Thu, 22 Sep 2011 09:15:26 +0000 (UTC) From: "Christian Schneider (JIRA)" To: dev@camel.apache.org Message-ID: <181377757.1466.1316682926579.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <419404395.51555.1316627050836.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4475) Make API self contained MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider updated CAMEL-4475: --------------------------------------- Attachment: camel-4475-2.patch Added beforewrap again. Removed the change in File component as it is now committed. > Make API self contained > ----------------------- > > Key: CAMEL-4475 > URL: https://issues.apache.org/jira/browse/CAMEL-4475 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.8.0 > Reporter: Christian Schneider > Assignee: Christian Schneider > Fix For: 2.9.0 > > Attachments: camel-4475-1.patch, camel-4475-2.patch, camel-4475-after.png, camel-4475-before.png > > > The API, SPI packages of camel are already quite independent after the previous refactorings. There are three classes in model that are still needed at the moment. > ProcessorDefinition, RouteDefinition and FromDefiniton > I propose to add the necessary methods to NamedNode to be able to reference most of the functionality of the classes. For RouteDefinition I propose a special interface that adds the ErrorHandler. For the rare cases where more functionality is needed a instanceof and a cast can be used. > I will attach a patch shortly that solves the issue and would be glad about some reviews. > The patch can not be fully compatible but the changes are mostly in spi interfaces that are probably rather rarely used. > I will also add screenshots from structure 101 that show how much the architecture improves after this patch. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira