activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
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 GMT
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("");
     }



Mime
View raw message