Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 37906 invoked from network); 12 May 2009 13:30:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 13:30:08 -0000 Received: (qmail 89840 invoked by uid 500); 12 May 2009 13:30:08 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 89790 invoked by uid 500); 12 May 2009 13:30:07 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 89778 invoked by uid 99); 12 May 2009 13:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 13:30:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 12 May 2009 13:30:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B12AE234C041 for ; Tue, 12 May 2009 06:29:45 -0700 (PDT) Message-ID: <1339769599.1242134985724.JavaMail.jira@brutus> Date: Tue, 12 May 2009 06:29:45 -0700 (PDT) From: "Thorsten Scherler (JIRA)" To: dev@forrest.apache.org Subject: [jira] Closed: (FOR-1164) The 'lm' preffix is harcoded, make it configurable In-Reply-To: <180041671.1242121065698.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FOR-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thorsten Scherler closed FOR-1164. ---------------------------------- Resolution: Fixed Committed revision 773885. muchas gracias Javier > The 'lm' preffix is harcoded, make it configurable > -------------------------------------------------- > > Key: FOR-1164 > URL: https://issues.apache.org/jira/browse/FOR-1164 > Project: Forrest > Issue Type: Improvement > Components: Locationmap > Reporter: Javier Puerto > Priority: Minor > > We are using the Locationmap with the Dispatcher block of Cocoon 2.2 and found that we can't define the preffix for the SourceFactory because it' harcoded in the LocationmapSourceFactory class. > public static final String LM_PREFIX = "lm"; > In our case, we use the locationmap in two diferents blocks with diferent locationmap.xml configurations but because of spring the configurations overlaping between block. As the configurations is diferent for each block, we need anothe preffix to make it works. > I made this changes to make LocationmapSourceFactory configurable: > Entends from "Configurable". > Add a private attribute: private String prefix; > Sustitute any reference to "LM_PREFIX" for the new "prefix" variable. > Implements the follow function to make the config to work. > public void configure(Configuration configuration) > throws ConfigurationException { > prefix = configuration.getAttribute("prefix", LM_PREFIX); > } > Now we can configure like this: > > name="lmx" prefix="lmx"/> > > And call the other instance of Locationmap with uris like this "lmx://*" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.