Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 26459 invoked from network); 9 Oct 2009 14:48:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 14:48:24 -0000 Received: (qmail 16854 invoked by uid 500); 9 Oct 2009 14:48:24 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 16822 invoked by uid 500); 9 Oct 2009 14:48:23 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 16813 invoked by uid 99); 9 Oct 2009 14:48:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 14:48:23 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 14:48:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1E1AB23888E5; Fri, 9 Oct 2009 14:48:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r823571 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java Date: Fri, 09 Oct 2009 14:47:59 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091009144800.1E1AB23888E5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Fri Oct 9 14:47:59 2009 New Revision: 823571 URL: http://svn.apache.org/viewvc?rev=823571&view=rev Log: https://issues.apache.org/activemq/browse/AMQNET-193 Update the Message command generation to allow the ReadOnly methods to be overridden. Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java?rev=823571&r1=823570&r2=823571&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java Fri Oct 9 14:47:59 2009 @@ -30,8 +30,8 @@ super.generateProperties(out); - out.println(" protected bool readOnlyMsgProperties;"); - out.println(" protected bool readOnlyMsgBody;"); + out.println(" private bool readOnlyMsgProperties;"); + out.println(" private bool readOnlyMsgBody;"); out.println(""); out.println(" public const int DEFAULT_MINIMUM_MESSAGE_SIZE = 1024;"); out.println(""); @@ -42,16 +42,16 @@ super.generatePropertyAccessors(out); - out.println(" public bool ReadOnlyProperties" ); + out.println(" public virtual bool ReadOnlyProperties" ); out.println(" {"); - out.println(" get { return readOnlyMsgProperties; }" ); - out.println(" set { readOnlyMsgProperties = value; }"); + out.println(" get { return this.readOnlyMsgProperties; }" ); + out.println(" set { this.readOnlyMsgProperties = value; }"); out.println(" }"); out.println(""); - out.println(" public bool ReadOnlyBody" ); + out.println(" public virtual bool ReadOnlyBody" ); out.println(" {"); - out.println(" get { return readOnlyMsgBody; }" ); - out.println(" set { readOnlyMsgBody = value; }"); + out.println(" get { return this.readOnlyMsgBody; }" ); + out.println(" set { this.readOnlyMsgBody = value; }"); out.println(" }"); out.println(""); }