cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r517603 - /cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin-demo/src/main/java/demo/GlobalBean.java
Date Tue, 13 Mar 2007 09:19:10 GMT
Author: reinhard
Date: Tue Mar 13 02:19:09 2007
New Revision: 517603

URL: http://svn.apache.org/viewvc?view=rev&rev=517603
Log:
implement toString()

Modified:
    cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin-demo/src/main/java/demo/GlobalBean.java

Modified: cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin-demo/src/main/java/demo/GlobalBean.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin-demo/src/main/java/demo/GlobalBean.java?view=diff&rev=517603&r1=517602&r2=517603
==============================================================================
--- cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin-demo/src/main/java/demo/GlobalBean.java
(original)
+++ cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin-demo/src/main/java/demo/GlobalBean.java
Tue Mar 13 02:19:09 2007
@@ -18,6 +18,14 @@
 
 public class GlobalBean {
     
-    public String message = "This is a message coming from the global Bean!";
+    private String message = "This is a message coming from the global Bean!";
 
+    public String getMessage() {
+        return message;
+    }    
+    
+    public String toString() {
+        return "[message] " + this.message;
+    }
+    
 }



Mime
View raw message