Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 44472 invoked from network); 12 Dec 2001 23:34:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Dec 2001 23:34:58 -0000 Received: (qmail 7529 invoked by uid 97); 12 Dec 2001 23:35:04 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 7513 invoked by uid 97); 12 Dec 2001 23:35:03 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 7502 invoked from network); 12 Dec 2001 23:35:03 -0000 Message-ID: <004a01c18365$c0a8d470$1f00a8c0@stepston4undxv> From: "Mika Goeckel" To: Subject: Self configuring Objects or is it possible to change the rule set during the parse phase? Date: Thu, 13 Dec 2001 00:35:58 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0047_01C1836E.21DE1BD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0047_01C1836E.21DE1BD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! Is it possible to add rules to the ruleset of a digester after the parse = has been started?=20 The reason for that is, that it would enable us to put the knowledge = about child objects within something like a configure() method of a just = created object. For example if someone creates a complicated valve with subobjects in = tomcat, the knowledge that a valve needs to be created is for example in = org.apache.catalina.startup.ContextRuleset.=20 Now if someone needs a Valve with subobjects configured via digester = he/she has to change the ContextRuleset class. If it would be possible to call a configure method on the specific = implementation of a class, it could itself add the rules for childs. A class could implement a ProvideRules interface defined in the digester = package to let the digester know that it wants to provide additional = rules. Comments please? ------=_NextPart_000_0047_01C1836E.21DE1BD0--