cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: r472052 - in /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main: java/demo/MyBean.java resources/META-INF/cocoon/spring/demo-application-context.xml
Date Tue, 07 Nov 2006 10:04:31 GMT
Author: giacomo
Date: Tue Nov  7 02:04:30 2006
New Revision: 472052

URL: http://svn.apache.org/viewvc?view=rev&rev=472052
Log:
make it more Spring like

Modified:
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java
    cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/META-INF/cocoon/spring/demo-application-context.xml

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java?view=diff&rev=472052&r1=472051&r2=472052
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java
(original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/java/demo/MyBean.java
Tue Nov  7 02:04:30 2006
@@ -19,5 +19,12 @@
 public class MyBean {
     
     public String message = "This is a message coming from a Spring bean.";
-    
-}
\ No newline at end of file
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    public String getMessage() {
+        return this.message;
+    }
+}

Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/META-INF/cocoon/spring/demo-application-context.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/META-INF/cocoon/spring/demo-application-context.xml?view=diff&rev=472052&r1=472051&r2=472052
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/META-INF/cocoon/spring/demo-application-context.xml
(original)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/META-INF/cocoon/spring/demo-application-context.xml
Tue Nov  7 02:04:30 2006
@@ -18,5 +18,7 @@
   limitations under the License.
 -->
 <beans>
-	<bean id="demo" class="demo.MyBean" scope="singleton"/>
+	<bean id="demo" class="demo.MyBean" scope="singleton">
+		<property name="message" value="This is a message coming from a Spring bean."/>
+	</bean>
 </beans>



Mime
View raw message