Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 50068 invoked from network); 23 Jul 2010 21:41:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 21:41:59 -0000 Received: (qmail 48716 invoked by uid 500); 23 Jul 2010 21:41:59 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 48612 invoked by uid 500); 23 Jul 2010 21:41:59 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 48605 invoked by uid 99); 23 Jul 2010 21:41:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 21:41:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 21:41:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 16FC023889F1; Fri, 23 Jul 2010 21:41:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: bimargulies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100723214103.16FC023889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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> rootClasses = new HashSet>(); + Set rootClasses = new HashSet(); 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> rootClasses = new HashSet>(); + Set rootClasses = new HashSet(); 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();