Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 81824 invoked from network); 4 Oct 2004 21:05:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Oct 2004 21:05:33 -0000 Received: (qmail 73336 invoked by uid 500); 4 Oct 2004 21:05:25 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 73248 invoked by uid 500); 4 Oct 2004 21:05:24 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 73235 invoked by uid 99); 4 Oct 2004 21:05:24 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_50_60,HTML_MESSAGE,NO_REAL_NAME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of greg.gray@kodak.com designates 192.232.121.200 as permitted sender) Received: from [192.232.121.200] (HELO smtp1.kodak.com) (192.232.121.200) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 04 Oct 2004 14:05:23 -0700 Received: from knotes2.kodak.com (ko-knotes2.ekc1.ekc.kodak.com [150.221.122.53]) by smtp1.kodak.com (8.11.3/8.11.1) with ESMTP id i94L5KE15525 for ; Mon, 4 Oct 2004 17:05:20 -0400 (EDT) To: commons-user@jakarta.apache.org Subject: [Configuration] [Betwixt] Using both the configuration and bitwixt projects X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: greg.gray@kodak.com Date: Mon, 4 Oct 2004 17:01:31 -0400 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(652HF103|July 23, 2004) at 10/04/2004 05:05:20 PM, Serialize complete at 10/04/2004 05:05:20 PM MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_alternative 0073D77C85256F23_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=_alternative 0073D77C85256F23_= Content-Type: text/plain; charset="us-ascii" All, I'm using the Commons-Configuration Project in order to manage multiple xml configuration files, using the CompositeConfiguration and HierarchicalConfiguration classes: ConfigurationFactory factory = new ConfigurationFactory(); URL configURL = getClass().getResource("/config.xml"); factory.setConfigurationURL(configURL); CompositeConfiguration compositeConfiguration = (CompositeConfiguration) factory.getConfiguration(); HierarchicalConfiguration config = (HierarchicalConfiguration) compositeConfiguration.getConfiguration(0); My application will use the HierarchicalConfiguration Api to access some of the contents of the configuration files. But I also want to map some of the content of the configuration files to JavaBean Objects using the Betwixt Project, in particular using the BeanReader class. When I use the BeanReader.parse API method I have to pass it a String or InputSource, InputStream... Assuming that I already have a HierarchicalConfiguration object, what should I do to be able to call the BeanReader.parse API method? Thanks for your help, Greg. --=_alternative 0073D77C85256F23_=--