geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsny...@apache.org
Subject svn commit: r463086 - in /geronimo/plugins/spring/trunk/example: ./ src/ src/test/ src/test/org/ src/test/org/apache/ src/test/org/apache/geronimo/ src/test/org/apache/geronimo/plugins/ src/test/org/apache/geronimo/plugins/spring/ src/test/org/apache/g...
Date Thu, 12 Oct 2006 00:36:39 GMT
Author: bsnyder
Date: Wed Oct 11 17:36:34 2006
New Revision: 463086

URL: http://svn.apache.org/viewvc?view=rev&rev=463086
Log:
Adding a simple example.

Added:
    geronimo/plugins/spring/trunk/example/
    geronimo/plugins/spring/trunk/example/src/
    geronimo/plugins/spring/trunk/example/src/test/
    geronimo/plugins/spring/trunk/example/src/test/org/
    geronimo/plugins/spring/trunk/example/src/test/org/apache/
    geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/
    geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/
    geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/
    geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java
  (with props)
    geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/example/
    geronimo/plugins/spring/trunk/example/src/test/resources/
    geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml   (with props)

Added: geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java?view=auto&rev=463086
==============================================================================
--- geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java
(added)
+++ geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java
Wed Oct 11 17:36:34 2006
@@ -0,0 +1,63 @@
+/**
+ *
+ * Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+public class Austin {
+    
+    private String food; 
+    private String drink; 
+    private String music;
+    private Integer year;
+
+    public void setFood(String food) {
+        this.food = food;
+    }
+
+    public String getFood() {
+        return this.food;
+    }
+
+    public void setDrink(String drink) {
+        this.drink = drink;
+    }
+
+    public String getDrink() {
+        return this.drink;
+    }
+
+    public void setMusic(String music) {
+        this.music = music;
+    }
+
+    public String getMusic() {
+        return this.music;
+    }
+
+    public void setYear(Integer year) {
+        this.year = year;
+    }
+
+    public Integer getYear() {
+        return this.year;
+    }
+
+    public String toString() {
+        return "food: " + food +
+        " drink: " + drink +
+        " music: " + music +
+        " year: " + year;
+    }
+}

Propchange: geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/spring/trunk/example/src/test/org/apache/geronimo/plugins/spring/Austin.java
------------------------------------------------------------------------------
    svn:keywords = Id Revision

Added: geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml?view=auto&rev=463086
==============================================================================
--- geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml (added)
+++ geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml Wed Oct 11 17:36:34
2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+-->
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+
+<beans>
+
+    <bean id="austin" class="org.apache.geronimo.plugins.spring.Austin">
+        <property name="food" ref="food" />
+        <property name="drink" ref="drink" />
+        <property name="music" ref="music" />
+        <property name="year" ref="year" />
+    </bean>
+
+    <bean id="food" class="java.lang.String">
+        <constructor-arg index="0" value="Jumbalaya" />
+    </bean>
+
+    <bean id="drink" class="java.lang.String">
+        <constructor-arg index="0" value="Shiner Bock" />
+    </bean>
+
+    <bean id="music" class="java.lang.String">
+        <constructor-arg index="0" value="Matisyahu Live at Stubbs" />
+    </bean>
+
+    <bean id="year" class="java.lang.Integer" singleton="true">
+      <constructor-arg index="0" value="2006" />
+    </bean>
+    
+</beans>

Propchange: geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/spring/trunk/example/src/test/resources/spring-test.xml
------------------------------------------------------------------------------
    svn:keywords = Id Revision



Mime
View raw message