vgritsenko 02/02/04 06:18:35 Modified: . changes.xml src/java/org/apache/cocoon/acting LangSelect.java Log: Deprecate LangSelect action Revision Changes Path 1.99 +4 -1 xml-cocoon2/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/changes.xml,v retrieving revision 1.98 retrieving revision 1.99 diff -u -r1.98 -r1.99 --- changes.xml 4 Feb 2002 02:30:34 -0000 1.98 +++ changes.xml 4 Feb 2002 14:18:35 -0000 1.99 @@ -4,7 +4,7 @@ <!-- History of Cocoon changes - $Id: changes.xml,v 1.98 2002/02/04 02:30:34 vgritsenko Exp $ + $Id: changes.xml,v 1.99 2002/02/04 14:18:35 vgritsenko Exp $ --> <changes title="History of Changes"> @@ -31,6 +31,9 @@ </devs> <release version="@version@" date="@date@"> + <action dev="VG" type="update" due-to="Konstantin Piroumian" due-to-email="[EMAIL PROTECTED]"> + Action LangSelect has been deprecated in favor of LocaleAction. + </action> <action dev="VG" type="update"> Allow sitemap components to be declared in the cocoon.xconf. Enhance SitemapComponentSelector to store label information provided in 1.5 +6 -5 xml-cocoon2/src/java/org/apache/cocoon/acting/LangSelect.java Index: LangSelect.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/acting/LangSelect.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- LangSelect.java 4 Feb 2002 12:08:39 -0000 1.4 +++ LangSelect.java 4 Feb 2002 14:18:35 -0000 1.5 @@ -58,6 +58,7 @@ import org.apache.avalon.framework.configuration.Configurable; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; +import org.apache.avalon.framework.logger.AbstractLoggable; import org.apache.avalon.framework.parameters.Parameters; import org.apache.avalon.framework.thread.ThreadSafe; import org.apache.cocoon.Constants; @@ -92,9 +93,10 @@ * Modification date: (29.05.2001 0:30:01) * @author: <a href="mailto:[EMAIL PROTECTED]">Konstantin Piroumian</a> * @author: <a href="mailto:[EMAIL PROTECTED]">Lassi Immonen</a> - * @version CVS $Id: LangSelect.java,v 1.4 2002/02/04 12:08:39 cziegeler Exp $ + * @version CVS $Id: LangSelect.java,v 1.5 2002/02/04 14:18:35 vgritsenko Exp $ + * @deprecated Use LocaleAction instead. */ -public class LangSelect extends java.lang.Object implements Action, Configurable, ThreadSafe { +public class LangSelect extends AbstractLoggable implements Action, Configurable, ThreadSafe { /** * The default language: en (English). @@ -135,6 +137,8 @@ */ public void configure(Configuration conf) throws ConfigurationException { + getLogger().warn("LangSelect action is deprecated. Please use LocaleAction"); + if (conf != null) { Configuration child = conf.getChild("store-in-request"); @@ -142,15 +146,12 @@ child = conf.getChild("create-session"); this.createSession = child.getValueAsBoolean(false); -// getLogger().debug("Create session is " + this.createSession + " for " + this); child = conf.getChild("store-in-session"); this.storeInSession = child.getValueAsBoolean(false); -// getLogger().debug("Store in session is " + this.storeInSession + " for " + this); child = conf.getChild("store-in-cookie"); this.storeInCookie = child.getValueAsBoolean(false); -// getLogger().debug("Use cookie is " + this.storeInCookie + " for " + this); } }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]