Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 70903 invoked from network); 14 Mar 2010 23:24:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Mar 2010 23:24:32 -0000 Received: (qmail 12915 invoked by uid 500); 14 Mar 2010 23:23:48 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 12887 invoked by uid 500); 14 Mar 2010 23:23:48 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 12879 invoked by uid 99); 14 Mar 2010 23:23:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Mar 2010 23:23:48 +0000 X-ASF-Spam-Status: No, hits=-1033.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Mar 2010 23:23:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2AC2B234C052 for ; Sun, 14 Mar 2010 23:23:27 +0000 (UTC) Message-ID: <800419760.257971268609007174.JavaMail.jira@brutus.apache.org> Date: Sun, 14 Mar 2010 23:23:27 +0000 (UTC) From: "Stefano Bagnara (JIRA)" To: mime4j-dev@james.apache.org Subject: [jira] Commented: (MIME4J-175) Introduce a MessageBuilderFactory/MessageBuilder along the lines of DocumentBuilderFactory In-Reply-To: <1468247253.257911268608647431.JavaMail.jira@brutus.apache.org> 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/MIME4J-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845156#action_12845156 ] Stefano Bagnara commented on MIME4J-175: ---------------------------------------- I committed a first draft similar to what DocumentBuilderFactory/DocumentBuilder do. If you like the idea then we should extend this to support real world use cases: 1) Use of custom StorageProvider (maybe a generic setFeature(String key, Object value) in the MessageBuilderFactory). 2) Behaviour configuration (DecodeMonitor and MimeEntityConfig stuff exposed in the MessageBuilderFactory). 3) Message abstract class should expose methods to create bodies and fields. Furthermore we could move the ServiceLoader util to a lower package and use that also for the Parser and for the StorageProvider selection. WDYT? > Introduce a MessageBuilderFactory/MessageBuilder along the lines of DocumentBuilderFactory > ------------------------------------------------------------------------------------------ > > Key: MIME4J-175 > URL: https://issues.apache.org/jira/browse/MIME4J-175 > Project: JAMES Mime4j > Issue Type: Improvement > Components: dom > Affects Versions: 0.6 > Reporter: Stefano Bagnara > Assignee: Stefano Bagnara > Fix For: 0.7 > > > This factory will support using the dom interfaces without knowledge of the "message" package. > Implementing a simple java SPI for the factory will let us to decouple "dom" from "message" and leave more future extensibility. > Then we'll have to add body/fields creation methods to Message. > Message should be traversable and alterable directly from the api. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.