cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r967273 - in /cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands: ReadZoo.java WriteZoo.java
Date Fri, 23 Jul 2010 21:41:03 GMT
Author: bimargulies
Date: Fri Jul 23 21:41:02 2010
New Revision: 967273

URL: http://svn.apache.org/viewvc?rev=967273&view=rev
Log:
Fix aegis_standalone sample

Modified:
    cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java
    cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java

Modified: 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=967273&r1=967272&r2=967273&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/ReadZoo.java
Fri Jul 23 21:41:02 2010
@@ -20,6 +20,7 @@
 package org.apache.cxf.demo.aegis.commands;
 
 import java.io.FileInputStream;
+import java.lang.reflect.Type;
 import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
@@ -48,7 +49,7 @@ public final class ReadZoo {
         AegisContext context;
 
         context = new AegisContext();
-        Set<Class<?>> rootClasses = new HashSet<Class<?>>();
+        Set<Type> rootClasses = new HashSet<Type>();
         rootClasses.add(Zoo.class);
         context.setRootClasses(rootClasses);
         context.initialize();

Modified: 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=967273&r1=967272&r2=967273&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/aegis_standalone/src/org/apache/cxf/demo/aegis/commands/WriteZoo.java
Fri Jul 23 21:41:02 2010
@@ -32,7 +32,7 @@ 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.aegis.type.AegisType;
 import org.apache.cxf.demo.aegis.types.Animal;
 import org.apache.cxf.demo.aegis.types.Zoo;
 
@@ -54,7 +54,7 @@ public final class WriteZoo {
 
         context = new AegisContext();
         context.setWriteXsiTypes(true);
-        Set<Class<?>> rootClasses = new HashSet<Class<?>>();
+        Set<java.lang.reflect.Type> rootClasses = new HashSet<java.lang.reflect.Type>();
         rootClasses.add(Zoo.class);
         context.setRootClasses(rootClasses);
         context.initialize();
@@ -64,7 +64,7 @@ public final class WriteZoo {
         IndentingXMLStreamWriter indentWriter = new IndentingXMLStreamWriter(xmlWriter);
 
         Zoo zoo = populateZoo();
-        Type aegisType = context.getTypeMapping().getType(zoo.getClass());
+        AegisType aegisType = context.getTypeMapping().getType(zoo.getClass());
         writer.write(zoo, new QName("urn:aegis:demo", "zoo"), false, indentWriter, aegisType);
         xmlWriter.close();
         output.close();



Mime
View raw message