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 82B3C200D04 for ; Mon, 11 Sep 2017 20:08:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F8DB1609C4; Mon, 11 Sep 2017 18:08:02 +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 C5B131609B7 for ; Mon, 11 Sep 2017 20:08:01 +0200 (CEST) Received: (qmail 60907 invoked by uid 500); 11 Sep 2017 18:08:00 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 60897 invoked by uid 99); 11 Sep 2017 18:08:00 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2017 18:08:00 +0000 Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id DC0371A0044 for ; Mon, 11 Sep 2017 18:07:59 +0000 (UTC) Received: by mail-io0-f175.google.com with SMTP id n69so30474492ioi.5 for ; Mon, 11 Sep 2017 11:07:59 -0700 (PDT) X-Gm-Message-State: AHPjjUgCmZD4j7rAdwrmjDXoNuDqNNfF7dc8dGR1ZhPKcay10ROCs6B9 XK/RCDRbMQddETHk/q/v8kiLF2E+Gro8 X-Google-Smtp-Source: AOwi7QAjt4lXOW3bDGZLrBEq+iImvxIQsZI0CAg1mm/IN+OXL3ycaHKKgOdv6EPjj+y0efhquFaoBKwbPJ7SKmoIS0k= X-Received: by 10.202.80.23 with SMTP id e23mr2698211oib.79.1505153279352; Mon, 11 Sep 2017 11:07:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.28.135 with HTTP; Mon, 11 Sep 2017 11:07:58 -0700 (PDT) From: Coty Sutherland Date: Mon, 11 Sep 2017 14:07:58 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Setting PropertySourceVault programatically in o.a.t.util.digester.Digester To: Tomcat Users List Content-Type: text/plain; charset="UTF-8" archived-at: Mon, 11 Sep 2017 18:08:02 -0000 Hi all, I'm fairly certain that there isn't a way to do this currently (I'm not so good with Reflection, so there could be), but I have to ask anyway. Let me explain my use case... I'm using tomcat embedded (8.5.x/trunk) and have a need to programmatically configure and use a PropertySource before starting tomcat. Using an instance that way is easy. The problem falls when users need to configure tomcat to also use the PropertySource implementation to extract information from their application XMLs by way of the Digester. The issue with this is that I cannot instantiate two instances of the PropertySource implementation class that I'm using because the library won't allow it and therefore Tomcat doesn't correctly configure the PropertySource. So, my questions comes down to "Can I configure a PropertySource instance and pass that to tomcat's Digester before tomcat starts?". Is this a silly question? If so, why? Thanks, Coty --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org