Skip to content
Permalink
Browse files
https://issues.apache.org/activemq/browse/AMQNET-193
Update the Message command generation to allow the ReadOnly methods to be overridden.
  • Loading branch information
Timothy A. Bish committed Oct 9, 2009
1 parent 8bdbfa5 commit 3ae3b3915b13f004ca86ba9430e26bc85000765d
Showing 1 changed file with 8 additions and 8 deletions.
@@ -30,8 +30,8 @@ protected void generateProperties( PrintWriter out ) {

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 @@ protected void generatePropertyAccessors( PrintWriter out ) {

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("");
}

0 comments on commit 3ae3b39

Please sign in to comment.