Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5DEFA200B9B for ; Wed, 12 Oct 2016 14:52:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C987160AD4; Wed, 12 Oct 2016 12:52:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 99A5C160AD3 for ; Wed, 12 Oct 2016 14:52:02 +0200 (CEST) Received: (qmail 87409 invoked by uid 500); 12 Oct 2016 12:51:56 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 87398 invoked by uid 99); 12 Oct 2016 12:51:56 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2016 12:51:56 +0000 Received: from mail-yw0-f174.google.com (mail-yw0-f174.google.com [209.85.161.174]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 0A1011A010F for ; Wed, 12 Oct 2016 12:51:55 +0000 (UTC) Received: by mail-yw0-f174.google.com with SMTP id t193so32286304ywc.2 for ; Wed, 12 Oct 2016 05:51:55 -0700 (PDT) X-Gm-Message-State: AA6/9RlOgexhTPUTBH/q1KQybTaC3iKF85Cnp+paxBV2e9PIKDFkKBo6MrB6E3Z5BnnD0ZJ7l8ZqwSNSnE+bzP+i X-Received: by 10.129.157.10 with SMTP id u10mr789806ywg.178.1476276715077; Wed, 12 Oct 2016 05:51:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.171.207 with HTTP; Wed, 12 Oct 2016 05:51:54 -0700 (PDT) From: Priyanka Gugale Date: Wed, 12 Oct 2016 18:21:54 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Accept list of objects from properties file To: user@commons.apache.org Content-Type: multipart/alternative; boundary=94eb2c0b908a31b32d053eaa75d4 archived-at: Wed, 12 Oct 2016 12:52:03 -0000 --94eb2c0b908a31b32d053eaa75d4 Content-Type: text/plain; charset=UTF-8 Hi, I want to accept list of objects as property from a properties file. I couldn't find any direct way to do this. I am thinking of following option: Accept object in json form from properties file. Then write a "Converter" like ObjectArrayConverter to parse this json string into an object list. Is this a right solution or there is any better way to achieve this using BeanUtils? -Priyanka --94eb2c0b908a31b32d053eaa75d4--