You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@apache.org on 2006/11/07 11:04:31 UTC
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
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>