You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bi...@apache.org on 2008/12/10 21:32:26 UTC
svn commit: r725418 - in /cxf/trunk/distribution/src/main/release/samples:
aegis/ aegis_standalone/ aegis_standalone/src/demo/hw/client/
aegis_standalone/src/demo/hw/server/ aegis_standalone/src/org/
aegis_standalone/src/org/apache/ aegis_standalone/sr...
Author: bimargulies
Date: Wed Dec 10 12:32:25 2008
New Revision: 725418
URL: http://svn.apache.org/viewvc?rev=725418&view=rev
Log:
Add an Aegis standalone sample.
Added:
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/ (props changed)
- copied from r725314, cxf/trunk/distribution/src/main/release/samples/aegis/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java (with props)
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java (with props)
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java (with props)
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml (with props)
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java (with props)
Removed:
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/demo/hw/client/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/demo/hw/server/
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/wsdl/
Modified:
cxf/trunk/distribution/src/main/release/samples/aegis/ (props changed)
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/README.txt
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/build.xml
cxf/trunk/distribution/src/main/release/samples/aegis_standalone/pom.xml
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 10 12:32:25 2008
@@ -0,0 +1 @@
+target
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 10 12:32:25 2008
@@ -0,0 +1 @@
+target
Modified: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/README.txt
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/README.txt?rev=725418&r1=725314&r2=725418&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/README.txt (original)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/README.txt Wed Dec 10 12:32:25 2008
@@ -1,8 +1,8 @@
Aegis Demo
====================
-This demo illustrates how to develop a service use the "code first", pojo based.
-This demo uses the Aegis data binding.
+This demo shows how you can use Aegis with no web service at all
+as a mapping between XML and Java.
Prerequisite
------------
@@ -21,16 +21,13 @@
From the base directory of this sample (i.e., where this README file is
located), the Ant build.xml file can be used to build and run the demo.
-The server and client targets automatically build the demo.
Using either UNIX or Windows:
- ant server (from one command line window)
- ant client (from a second command line window)
+ ant
-To remove the code generated from the WSDL file and the .class
-files, run "ant clean"
+To remove the .class files, run "ant clean"
Building and running the demo using Maven
---------------------------------------
@@ -41,103 +38,9 @@
Using either UNIX or Windows:
mvn install (builds the demo)
- mvn -Pserver (from one command line window)
- mvn -Pclient (from a second command line window)
+ mvn -Prun (from one command line window)
-To remove the code generated from the WSDL file and the .class
-files, run "mvn clean".
+To remove the generated code, run "mvn clean".
-Building the demo using javac
-------------------------------
-
-From the base directory of this sample (i.e., where this README file is
-located), first create the target directory build/classes:
-
-For UNIX:
- mkdir -p build/classes
-
-For Windows:
- mkdir build\classes
- Must use back slashes.
-
-Now compile the provided client and server applications with the commands:
-
-For UNIX:
-
- export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf-manifest.jar:./build/classes
- javac -d build/classes src/demo/hw/client/*.java
- javac -d build/classes src/demo/hw/server/*.java
-
-For Windows:
- set classpath=%classpath%;%CXF_HOME%\lib\cxf-manifest.jar;.\build\classes
- javac -d build\classes src\demo\hw\client\*.java
- javac -d build\classes src\demo\hw\server\*.java
-
-
-Running the demo using java
----------------------------
-
-From the base directory of this sample (i.e., where this README file is
-located) run the commands, entered on a single command line:
-
-For UNIX (must use forward slashes):
- java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
- demo.hw.server.Server &
-
- java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
- demo.hw.client.Client
-
-The server process starts in the background. After running the client,
-use the kill command to terminate the server process.
-
-For Windows (may use either forward or back slashes):
- start
- java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
- demo.hw.server.Server
-
- java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
- demo.hw.client.Client
-
-A new command windows opens for the server process. After running the
-client, terminate the server process by issuing Ctrl-C in its command window.
-
-To remove the code generated from the WSDL file and the .class
-files, either delete the build directory and its contents or run:
-
- ant clean
-
-
-Building and running the demo in a servlet container
-----------------------------------------------------
-
-Please refer to samples directory README for building demo in a servlet container.
-
-Using ant, run the client application with the command:
-
- ant client-servlet -Dbase.url=http://localhost:#
-
-Where # is the TCP/IP port used by the servlet container,
-e.g., 8080.
-
-Or
- ant client-servlet -Dhost=localhost -Dport=8080
-
-You can ignore the -Dhost and -Dport if your tomcat setup is same, i.e ant client-servlet
-
-Using java, run the client application with the command:
-
- For UNIX:
-
- java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
- demo.hw.client.Client http://localhost:#/helloworld/services/hello_world
-
- For Windows:
-
- java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
- demo.hw.client.Client http://localhost:#/helloworld/services/hello_world
-
-Where # is the TCP/IP port used by the servlet container,
-e.g., 8080.
-
Modified: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/build.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/build.xml?rev=725418&r1=725314&r2=725418&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/build.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/build.xml Wed Dec 10 12:32:25 2008
@@ -17,26 +17,18 @@
specific language governing permissions and limitations
under the License.
-->
-<project name="aegis" default="build" basedir=".">
+<project name="aegis-standalone" default="build" basedir=".">
<import file="../common_build.xml"/>
- <target name="client" description="run demo client" depends="build">
- <property name="param" value=""/>
- <cxfrun classname="demo.hw.client.Client"/>
+ <target name="write" description="write" depends="build">
+ <property name="param" value="zoo.xml"/>
+ <cxfrun classname="org.apache.cxf.demo.aegis.WriteZoo"/>
</target>
- <target name="server" description="run demo server" depends="build">
- <cxfrun classname="demo.hw.server.Server"/>
+ <target name="read" description="read" depends="build">
+ <property name="param" value="zoo.xml"/>
+ <cxfrun classname="org.apache.cxf.demo.aegis.WriteZoo"/>
</target>
- <property name="cxf.war.file.name" value="helloworld"/>
- <target name="war" depends="build">
- <cxfwar filename="${cxf.war.file.name}.war"/>
- </target>
-
- <target name="client-servlet" description="run demo client hitting servlet" depends="build">
- <property name="param" value=""/>
- <cxfrun classname="demo.hw.client.Client" param1="${base.url}/helloworld/services/hello_world" param2="${op}" param3="${param}"/>
- </target>
</project>
Modified: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/pom.xml?rev=725418&r1=725314&r2=725418&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/pom.xml Wed Dec 10 12:32:25 2008
@@ -2,7 +2,7 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.cxf.samples</groupId>
- <artifactId>aegis</artifactId>
+ <artifactId>aegis-standalone</artifactId>
<version>1.0</version>
<properties>
<cxf.version>[2,)</cxf.version>
@@ -20,8 +20,8 @@
</plugins>
</build>
<profiles>
- <profile>
- <id>server</id>
+ <profile>
+ <id>write</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
@@ -35,7 +35,10 @@
<goal>java</goal>
</goals>
<configuration>
- <mainClass>demo.hw.server.Server</mainClass>
+ <mainClass>org.apache.cxf.demo.aegis.commands.WriteZoo</mainClass>
+ <arguments>
+ <argument>zoo.xml</argument>
+ </arguments>
</configuration>
</execution>
</executions>
@@ -43,8 +46,8 @@
</plugins>
</build>
</profile>
- <profile>
- <id>client</id>
+ <profile>
+ <id>read</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
@@ -58,7 +61,10 @@
<goal>java</goal>
</goals>
<configuration>
- <mainClass>demo.hw.client.Client</mainClass>
+ <mainClass>org.apache.cxf.demo.aegis.commands.ReadZoo</mainClass>
+ <arguments>
+ <argument>zoo.xml</argument>
+ </arguments>
</configuration>
</execution>
</executions>
@@ -110,24 +116,13 @@
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-databinding-aegis</artifactId>
<version>${cxf.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <!-- Jetty is needed if you're using the CXFServlet -->
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http-jetty</artifactId>
- <version>${cxf.version}</version>
- </dependency>
+ <dependency>
+ <groupId>org.codehaus.staxmate</groupId>
+ <artifactId>staxmate</artifactId>
+ <version>1.3.0</version>
+ </dependency>
</dependencies>
</project>
Added: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java?rev=725418&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java Wed Dec 10 12:32:25 2008
@@ -0,0 +1,75 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+package org.apache.cxf.demo.aegis.commands;
+
+import java.io.FileInputStream;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.cxf.aegis.AegisContext;
+import org.apache.cxf.aegis.AegisReader;
+import org.apache.cxf.demo.aegis.types.Animal;
+import org.apache.cxf.demo.aegis.types.Zoo;
+
+/**
+ *
+ */
+public class ReadZoo {
+
+ private XMLInputFactory inputFactory;
+ private String inputPathname;
+
+ private ReadZoo() {
+ inputFactory = XMLInputFactory.newInstance();
+ }
+
+ private void go() throws Exception {
+ AegisContext context;
+
+ context = new AegisContext();
+ Set<Class<?>> rootClasses = new HashSet<Class<?>>();
+ rootClasses.add(Zoo.class);
+ context.setRootClasses(rootClasses);
+ context.initialize();
+ AegisReader<XMLStreamReader> reader = context.createXMLStreamReader();
+ FileInputStream input = new FileInputStream(inputPathname);
+ XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(input);
+ Zoo zoo = (Zoo)reader.read(xmlReader);
+ System.out.println("Name " + zoo.getName());
+ System.out.println("Founder " + zoo.getFounder());
+ for(Map.Entry<String, Animal> e : zoo.getAnimals().entrySet()) {
+ System.out.println(e.getKey() + " -> " + e.getValue().getName());
+ }
+ }
+
+ /**
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+ ReadZoo rz = new ReadZoo();
+ rz.inputPathname = args[0];
+ rz.go();
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java?rev=725418&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java Wed Dec 10 12:32:25 2008
@@ -0,0 +1,102 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+package org.apache.cxf.demo.aegis.commands;
+
+import java.io.FileOutputStream;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.apache.cxf.aegis.AegisContext;
+import org.apache.cxf.aegis.AegisWriter;
+import org.apache.cxf.aegis.type.Type;
+import org.apache.cxf.demo.aegis.types.Animal;
+import org.apache.cxf.demo.aegis.types.Zoo;
+import org.codehaus.staxmate.SMOutputFactory;
+import org.codehaus.staxmate.out.SMOutputDocument;
+
+/**
+ *
+ */
+public class WriteZoo {
+ private XMLOutputFactory outputFactory;
+ private String outputPathname;
+
+ private WriteZoo() {
+ outputFactory = XMLOutputFactory.newInstance();
+ }
+
+ private void go() throws Exception {
+ AegisContext context;
+
+ context = new AegisContext();
+ context.setWriteXsiTypes(true);
+ Set<Class<?>> rootClasses = new HashSet<Class<?>>();
+ rootClasses.add(Zoo.class);
+ context.setRootClasses(rootClasses);
+ context.initialize();
+ AegisWriter<XMLStreamWriter> writer = context.createXMLStreamWriter();
+ FileOutputStream output = new FileOutputStream(outputPathname);
+ XMLStreamWriter xmlWriter = outputFactory.createXMLStreamWriter(output);
+ SMOutputDocument smOutput = SMOutputFactory.createOutputDocument(xmlWriter);
+ smOutput.setIndentation("\n ", 1, 2);
+ Zoo zoo = populateZoo();
+ Type aegisType = context.getTypeMapping().getType(zoo.getClass());
+ writer.write(zoo, new QName("urn:aegis:demo", "zoo"),
+ false, xmlWriter, aegisType);
+ xmlWriter.close();
+ smOutput.closeRoot();
+ output.close();
+ }
+
+ private Zoo populateZoo() {
+ Zoo zoo = new Zoo();
+ zoo.setFounder("Noah");
+ zoo.setName("The Original Zoo");
+ Map<String, Animal> animals = new HashMap<String, Animal>();
+ Animal a = new Animal();
+ a.setName("lion");
+ animals.put("lion", a);
+ a = new Animal();
+ a.setName("tiger");
+ animals.put("tiger", a);
+ a = new Animal();
+ a.setName("bear");
+ animals.put("bear", a);
+ zoo.setAnimals(animals);
+ return zoo;
+ }
+
+ /**
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+ WriteZoo wz = new WriteZoo();
+ wz.outputPathname = args[0];
+ wz.go();
+ }
+
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java?rev=725418&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java Wed Dec 10 12:32:25 2008
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.cxf.demo.aegis.types;
+
+public class Animal {
+ private String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Animal.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml?rev=725418&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml Wed Dec 10 12:32:25 2008
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<mappings xmlns:nt="urn:aegis:demo">
+ <mapping name="nt:Zoo">
+ <property name='founder' mappedName='nt:Founder' nillable='false'/>
+ </mapping>
+</mappings>
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.aegis.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java?rev=725418&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java (added)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java Wed Dec 10 12:32:25 2008
@@ -0,0 +1,52 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+package org.apache.cxf.demo.aegis.types;
+
+import java.util.Map;
+
+/**
+ *
+ */
+public class Zoo {
+ private String name;
+ private String founder;
+
+ public String getFounder() {
+ return founder;
+ }
+ public void setFounder(String founder) {
+ this.founder = founder;
+ }
+ private Map<String, Animal> animals;
+
+
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public Map<String, Animal> getAnimals() {
+ return animals;
+ }
+ public void setAnimals(Map<String, Animal> animals) {
+ this.animals = animals;
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/types/Zoo.java
------------------------------------------------------------------------------
svn:keywords = Rev Date