Author: alessio.soldano(a)jboss.com
Date: 2009-10-07 12:36:10 -0400 (Wed, 07 Oct 2009)
New Revision: 10853
Added:
projects/jaxbintros/trunk/pom.xml
projects/jaxbintros/trunk/src/main/ant/
projects/jaxbintros/trunk/src/main/ant/build-install.xml
projects/jaxbintros/trunk/src/test/resources/intro-config-01.xml
projects/jaxbintros/trunk/src/test/resources/intro-config-02.xml
projects/jaxbintros/trunk/src/test/resources/intro-config-03.xml
projects/jaxbintros/trunk/src/test/resources/order-message.xml
Removed:
projects/jaxbintros/trunk/ant-import/
projects/jaxbintros/trunk/ant.properties.example
Modified:
projects/jaxbintros/trunk/src/main/etc/component-info.xml
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsAnnotationReaderUnitTest.java
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsConfigParserUnitTest.java
Log:
[JBAS-7317] Mavenize JaxbIntros
Deleted: projects/jaxbintros/trunk/ant.properties.example
===================================================================
--- projects/jaxbintros/trunk/ant.properties.example 2009-10-07 13:33:45 UTC (rev 10852)
+++ projects/jaxbintros/trunk/ant.properties.example 2009-10-07 16:36:10 UTC (rev 10853)
@@ -1,26 +0,0 @@
-#
-# A sample ant properties file
-#
-# $Id: ant.properties.example 3995 2007-07-26 08:52:45Z thomas.diesler(a)jboss.com $
-
-# JBoss Home
-#jboss42.home=/home/tdiesler/svn/jbossas/tags/JBoss_4_2_1_GA/build/output/jboss-4.2.1.GA
-
-# The JBoss settings
-jboss.server.instance=default
-
-# JBoss Repository
-#jboss.repository=file:/home/tdiesler/svn/jboss.local.repository
-jboss.repository=http://repository.jboss.org
-
-# JBossWS Release
-jboss.local.repository=/home/tdiesler/svn/jboss.local.repository
-
-# Force thirdparty HTTP get
-#force.thirdparty.get=true
-
-# Java Compiler options
-javac.debug=yes
-javac.deprecation=no
-javac.fail.onerror=yes
-javac.verbose=no
Added: projects/jaxbintros/trunk/pom.xml
===================================================================
--- projects/jaxbintros/trunk/pom.xml (rev 0)
+++ projects/jaxbintros/trunk/pom.xml 2009-10-07 16:36:10 UTC (rev 10853)
@@ -0,0 +1,262 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <name>JBoss JAXB Introductions</name>
+ <groupId>jboss.jaxbintros</groupId>
+ <artifactId>jboss-jaxb-intros</artifactId>
+ <packaging>jar</packaging>
+
+ <version>1.0.1-SNAPSHOT</version>
+
+ <!-- Source Control Management -->
+ <scm>
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/jbossws/projects/jax...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/jbossws/projec...
+
<
url>http://fisheye.jboss.com/viewrep/JBossWS/projects/jaxbintros/trunk...
+ </scm>
+
+ <prerequisites>
+ <maven>2.0.9</maven>
+ </prerequisites>
+
+ <!-- IssueManagement -->
+ <issueManagement>
+ <system>jira</system>
+ <
url>http://jira.jboss.org/jira/browse/JBWS</url>
+ </issueManagement>
+
+ <!-- licenses -->
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <
url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+
+ <!-- Properties -->
+ <properties>
+ <commons.logging.version>1.1.1</commons.logging.version>
+ <junit.version>3.8.2</junit.version>
+ <jaxb.api.version>2.1</jaxb.api.version>
+ <jaxb.impl.version>2.1.9</jaxb.impl.version>
+ </properties>
+
+ <!-- Dependencies -->
+ <dependencies>
+
+ <!-- provided apis -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>${jaxb.api.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>${jaxb.impl.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- test dependencies -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <!-- Plugins -->
+ <build>
+ <resources>
+ <resource>
+ <targetPath>../etc</targetPath>
+ <directory>src/main/etc</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <property name="version.id"
value="${project.version}" />
+ <property name="jboss.local.repository"
value="${jboss.local.repository}" />
+ <ant antfile="src/main/ant/build-install.xml"
target="install" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0-beta-8</version>
+ <configuration>
+ <scmCommentPrefix>[${jira.issue}] :</scmCommentPrefix>
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <!-- PluginManagement -->
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2.SP1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <!-- Reporting -->
+ <reporting>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <!-- Repositories -->
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <
url>http://repository.jboss.org/maven2</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <
url>http://snapshots.jboss.org/maven2</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <!-- PluginRepositories -->
+ <pluginRepositories>
+ <pluginRepository>
+ <id>repository.jboss.org</id>
+ <
url>http://repository.jboss.org/maven2</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>snapshots.jboss.org</id>
+ <
url>http://snapshots.jboss.org/maven2</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <!-- DistributionManagement -->
+ <distributionManagement>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Maven Repository</name>
+ <url>file://${jboss.maven.repository}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <
url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <profiles>
+ <profile>
+ <id>download-sources</id>
+ <activation>
+ <property>
+ <name>jbossws-download-sources</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>download-sources</id>
+ <goals>
+ <goal>sources</goal>
+ </goals>
+ <configuration>
+ <silent>true</silent>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
Property changes on: projects/jaxbintros/trunk/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jaxbintros/trunk/src/main/ant/build-install.xml
===================================================================
--- projects/jaxbintros/trunk/src/main/ant/build-install.xml (rev
0)
+++ projects/jaxbintros/trunk/src/main/ant/build-install.xml 2009-10-07 16:36:10 UTC (rev
10853)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at
http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project>
+
+ <!-- ================================================================== -->
+ <!-- Setup -->
+ <!-- ================================================================== -->
+
+ <property name="common.dir" value="${basedir}"/>
+ <property name="common.etc.dir"
value="${common.dir}/src/main/etc"/>
+ <property name="common.target.dir"
value="${common.dir}/target"/>
+
+ <!-- ================================================================== -->
+ <!-- Initialization -->
+ <!-- ================================================================== -->
+
+ <target name="init">
+ <property name="repository.id" value="${version.id}"/>
+ <echo message="version.id=${version.id}"/>
+ <echo message="repository.id=${repository.id}"/>
+ <echo message="jboss.local.repository=${jboss.local.repository}"/>
+ </target>
+
+ <target name="check-properties" depends="init">
+ <available property="jboss.local.repository.available"
type="dir" file="${jboss.local.repository}"/>
+ <fail message="Cannot find directory ${jboss.local.repository}. Did you copy
profiles-example.xml?" unless="jboss.local.repository.available"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Installation -->
+ <!-- ================================================================== -->
+
+ <!-- Install to jboss.local.repository -->
+ <target name="install" depends="check-properties"
description="Install to jboss.local.repository">
+
+ <!-- Check if the target jar is available -->
+ <available property="jboss-jaxb-intros.jar.available"
file="${common.target.dir}/jboss-jaxb-intros-${version.id}.jar"/>
+ <fail message="Cannot find jboss-jaxb-intros-${version.id}.jar. Did you run
'mvn package'?" unless="jboss-jaxb-intros.jar.available"/>
+
+ <!-- Check if the source jar is available -->
+ <available property="jboss-jaxb-intros.sources.jar.available"
file="${common.target.dir}/jboss-jaxb-intros-${version.id}-sources.jar"/>
+ <fail message="Cannot find jboss-jaxb-intros-${version.id}-sources.jar. Did
you run 'mvn source:jar'?"
unless="jboss-jaxb-intros.sources.jar.available"/>
+
+ <!-- jboss/jboss-jaxb-intros -->
+ <property name="jboss.repository.dir"
value="${jboss.local.repository}/jboss/jboss-jaxb-intros/${repository.id}"/>
+ <mkdir dir="${jboss.repository.dir}/lib"/>
+ <copy file="${common.target.dir}/jboss-jaxb-intros-${version.id}.jar"
tofile="${jboss.repository.dir}//lib/jboss-jaxb-intros.jar"
overwrite="true"/>
+ <copy
file="${common.target.dir}/jboss-jaxb-intros-${version.id}-sources.jar"
tofile="${jboss.repository.dir}/lib/jboss-jaxb-intros-src.jar"
overwrite="true"/>
+ <copy file="${common.target.dir}/etc/component-info.xml"
tofile="${jboss.repository.dir}/component-info.xml"
overwrite="true"/>
+ </target>
+
+</project>
Property changes on: projects/jaxbintros/trunk/src/main/ant/build-install.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/jaxbintros/trunk/src/main/etc/component-info.xml
===================================================================
--- projects/jaxbintros/trunk/src/main/etc/component-info.xml 2009-10-07 13:33:45 UTC (rev
10852)
+++ projects/jaxbintros/trunk/src/main/etc/component-info.xml 2009-10-07 16:36:10 UTC (rev
10853)
@@ -4,18 +4,6 @@
<artifact id="jboss-jaxb-intros.jar"/>
- <import componentref="jboss/jbossws-native42">
- <compatible version="@jbossws-native@"/>
- </import>
-
- <import componentref="jboss/jbossws-spi">
- <compatible version="@jbossws-spi@"/>
- </import>
-
- <import componentref="sun-jaxb">
- <compatible version="@sun-jaxb@"/>
- </import>
-
<export>
</export>
Modified:
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsAnnotationReaderUnitTest.java
===================================================================
---
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsAnnotationReaderUnitTest.java 2009-10-07
13:33:45 UTC (rev 10852)
+++
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsAnnotationReaderUnitTest.java 2009-10-07
16:36:10 UTC (rev 10853)
@@ -31,6 +31,9 @@
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.transform.stream.StreamSource;
+
+import java.io.File;
+import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Map;
@@ -44,8 +47,8 @@
*/
public class IntroductionsAnnotationReaderUnitTest extends TestCase {
- public void test_annotation_intro() throws ConfigurationException,
NoSuchMethodException, NoSuchFieldException {
- JaxbIntros config =
IntroductionsConfigParser.parseConfig(getClass().getResourceAsStream("intro-config-02.xml"));
+ public void test_annotation_intro() throws ConfigurationException,
NoSuchMethodException, NoSuchFieldException, IOException {
+ JaxbIntros config = IntroductionsConfigParser.parseConfig(new
File("target/test-classes/intro-config-02.xml").toURL().openStream());
IntroductionsAnnotationReader reader = new
IntroductionsAnnotationReader(config);
Method testBean1Method = TestBean1.class.getMethod("getOrderDate");
Field testBean2Field = TestBean2.class.getField("orderNumber");
@@ -72,8 +75,8 @@
assertEquals("http://jbossesb.org", xmlAttribute.namespace());
}
- public void test_jaxb_unmarshal() throws ConfigurationException, JAXBException {
- JaxbIntros config =
IntroductionsConfigParser.parseConfig(getClass().getResourceAsStream("intro-config-03.xml"));
+ public void test_jaxb_unmarshal() throws ConfigurationException, JAXBException,
IOException {
+ JaxbIntros config = IntroductionsConfigParser.parseConfig(new
File("target/test-classes/intro-config-03.xml").toURL().openStream());
IntroductionsAnnotationReader reader = new
IntroductionsAnnotationReader(config);
Map<String, Object> jaxbConfig = new HashMap<String, Object>();
@@ -83,7 +86,7 @@
JAXBContext jaxbContext = JAXBContext.newInstance(new Class[]
{CustomerOrder.class}, jaxbConfig);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
- JAXBElement jbe = unmarshaller.unmarshal(new
StreamSource(getClass().getResourceAsStream("order-message.xml")),
CustomerOrder.class);
+ JAXBElement jbe = unmarshaller.unmarshal(new StreamSource(new
File("target/test-classes/order-message.xml").toURL().openStream()),
CustomerOrder.class);
CustomerOrder order = (CustomerOrder) jbe.getValue();
assertNotNull("null Order", order);
Modified:
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsConfigParserUnitTest.java
===================================================================
---
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsConfigParserUnitTest.java 2009-10-07
13:33:45 UTC (rev 10852)
+++
projects/jaxbintros/trunk/src/test/java/org/jboss/jaxb/intros/IntroductionsConfigParserUnitTest.java 2009-10-07
16:36:10 UTC (rev 10853)
@@ -19,6 +19,10 @@
*/
package org.jboss.jaxb.intros;
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+
import junit.framework.TestCase;
import org.jboss.jaxb.intros.configmodel.JaxbIntros;
import org.jboss.jaxb.intros.configmodel.ClassIntroConfig;
@@ -28,8 +32,8 @@
*/
public class IntroductionsConfigParserUnitTest extends TestCase {
- public void test() throws ConfigurationException {
- JaxbIntros config =
IntroductionsConfigParser.parseConfig(getClass().getResourceAsStream("intro-config-01.xml"));
+ public void test() throws ConfigurationException, IOException {
+ JaxbIntros config = IntroductionsConfigParser.parseConfig(new
File("target/test-classes/intro-config-01.xml").toURL().openStream());
assertEquals("http://jbossesb.x.jboss.org",
config.getDefaultNamespace());
assertEquals(2, config.getClazz().size());
Added: projects/jaxbintros/trunk/src/test/resources/intro-config-01.xml
===================================================================
--- projects/jaxbintros/trunk/src/test/resources/intro-config-01.xml
(rev 0)
+++ projects/jaxbintros/trunk/src/test/resources/intro-config-01.xml 2009-10-07 16:36:10
UTC (rev 10853)
@@ -0,0 +1,24 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jaxb-intros
xmlns="http://www.jboss.org/xsd/jaxb/intros"
+ default-namespace="http://jbossesb.x.jboss.org">
+
+ <!--
+ The XSD for the schema can be found at:
+
http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/src/main/resou...
+ Register it against the
http://www.jboss.org/xsd/jaxb/intros namespace in your IDE
and away you go :-)
+ -->
+
+ <Class name="org.jboss.jaxb.intros.TestBean1">
+ <XmlType namespace="http://jbossesb.y.jboss.org" />
+ <Method name="getOrderDate">
+ <XmlAttribute namespace="http://jbossesb.z.jboss.org"
required="false"/>
+ </Method>
+ </Class>
+
+ <Class name="org.jboss.jaxb.intros.TestBean2">
+ <Field name="orderNumber">
+ <XmlElement name="OrderNum" nillable="true" />
+ </Field>
+ </Class>
+
+</jaxb-intros>
Property changes on: projects/jaxbintros/trunk/src/test/resources/intro-config-01.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jaxbintros/trunk/src/test/resources/intro-config-02.xml
===================================================================
--- projects/jaxbintros/trunk/src/test/resources/intro-config-02.xml
(rev 0)
+++ projects/jaxbintros/trunk/src/test/resources/intro-config-02.xml 2009-10-07 16:36:10
UTC (rev 10853)
@@ -0,0 +1,24 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jaxb-intros
xmlns="http://www.jboss.org/xsd/jaxb/intros"
+ default-namespace="http://jbossesb.x.jboss.org">
+
+ <!--
+ The XSD for the schema can be found at:
+
http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/src/main/resou...
+ Register it against the
http://www.jboss.org/xsd/jaxb/intros namespace in your IDE
and away you go :-)
+ -->
+
+ <Class name="org.jboss.jaxb.intros.TestBean1">
+ <XmlType namespace="http://jbossesb.y.jboss.org"
propOrder="a,b,c" factoryClass="org.jboss.jaxb.intros.TestBean1"
/>
+ <Method name="getOrderDate">
+ <XmlAttribute namespace="http://jbossesb.z.jboss.org"
required="false"/>
+ </Method>
+ </Class>
+
+ <Class name="org.jboss.jaxb.intros.TestBean2">
+ <Field name="orderNumber">
+ <XmlElement name="OrderNum" nillable="true"
type="org.jboss.jaxb.intros.TestBean2" />
+ </Field>
+ </Class>
+
+</jaxb-intros>
Property changes on: projects/jaxbintros/trunk/src/test/resources/intro-config-02.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jaxbintros/trunk/src/test/resources/intro-config-03.xml
===================================================================
--- projects/jaxbintros/trunk/src/test/resources/intro-config-03.xml
(rev 0)
+++ projects/jaxbintros/trunk/src/test/resources/intro-config-03.xml 2009-10-07 16:36:10
UTC (rev 10853)
@@ -0,0 +1,51 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jaxb-intros
xmlns="http://www.jboss.org/xsd/jaxb/intros">
+
+ <!--
+ The XSD for the schema can be found at:
+
http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/src/main/resou...
+ Register it against the
http://www.jboss.org/xsd/jaxb/intros namespace in your IDE
and away you go :-)
+ -->
+
+ <!--
+ Note: how the "name" attributes on class, field and method configs can be
regular expressions.
+ -->
+
+ <!--
+ The type namespaces on the customerOrder are different from the rest of the
message...
+ -->
+ <Class name="org.jboss.jaxb.intros.testbeans.CustomerOrder">
+ <Method name="get.*">
+ <XmlElement namespace="http://org.jboss.esb/ns" />
+ </Method>
+ </Class>
+
+ <Class name="org.jboss.jaxb.intros.testbeans.OrderHeader">
+ <Method name="getOrderDate">
+ <XmlAttribute name="date"
namespace="http://org.jboss.esb/ns" />
+ </Method>
+ <Method name="get.*">
+ <XmlElement namespace="http://org.jboss.esb/ns1" />
+ </Method>
+ </Class>
+
+ <Class name="org.jboss.jaxb.intros.testbeans.Address">
+ <XmlAccessorType value="FIELD" />
+ <Field name="zip">
+ <XmlAttribute />
+ </Field>
+ <Field name=".*">
+ <XmlElement namespace="http://org.jboss.esb/ns1" />
+ </Field>
+ </Class>
+
+ <!--
+ More general namespace config...
+ -->
+ <Class name="org.jboss.jaxb.intros.testbeans.*">
+ <Method name="get.*">
+ <XmlElement namespace="http://org.jboss.esb/ns1" />
+ </Method>
+ </Class>
+
+</jaxb-intros>
Property changes on: projects/jaxbintros/trunk/src/test/resources/intro-config-03.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jaxbintros/trunk/src/test/resources/order-message.xml
===================================================================
--- projects/jaxbintros/trunk/src/test/resources/order-message.xml
(rev 0)
+++ projects/jaxbintros/trunk/src/test/resources/order-message.xml 2009-10-07 16:36:10 UTC
(rev 10853)
@@ -0,0 +1,47 @@
+<ns:customerOrder xmlns:ns="http://org.jboss.esb/ns"
xmlns:ns1="http://org.jboss.esb/ns1">
+ <ns:header ns:date="2006-05-01T00:00:00.000Z">
+ <ns1:billTerms/>
+ <ns1:billTo>
+ <ns1:address zip="06484">
+ <ns1:city>Shelton</ns1:city>
+ <ns1:state>CT</ns1:state>
+ <ns1:street1>160 Active Lane</ns1:street1>
+ <ns1:street2/>
+ </ns1:address>
+ <ns1:company>Active Steel</ns1:company>
+ <ns1:contact>
+ <ns1:email>bob@activeSteel.com</ns1:email>
+ <ns1:fax>(203) 555-1235</ns1:fax>
+ <ns1:name>Bob Active</ns1:name>
+ <ns1:phone>(203) 555-1234</ns1:phone>
+ </ns1:contact>
+ </ns1:billTo>
+ <ns1:customerNumber>123456</ns1:customerNumber>
+ <ns1:orderTotal>88500.00</ns1:orderTotal>
+ <ns1:poNumber>PO000123</ns1:poNumber>
+ <ns1:shipTerms/>
+ <ns1:shipTo>
+ <ns1:address>
+ <ns1:city>Shelton</ns1:city>
+ <ns1:state>CT</ns1:state>
+ <ns1:street1>160 Active Lane</ns1:street1>
+ <ns1:street2/>
+ <ns1:zip>06484</ns1:zip>
+ </ns1:address>
+ <ns1:company>Active Steel</ns1:company>
+ <ns1:contact>
+ <ns1:email>bob@activeSteel.com</ns1:email>
+ <ns1:fax>(203) 555-1235</ns1:fax>
+ <ns1:name>Bob Active</ns1:name>
+ <ns1:phone>(203) 555-1234</ns1:phone>
+ </ns1:contact>
+ </ns1:shipTo>
+ </ns:header>
+ <ns:items>
+ <ns1:description>Flat 16 feet 100 count</ns1:description>
+ <ns1:extensionAmount>24500.00</ns1:extensionAmount>
+ <ns1:partNumber>FLT16100</ns1:partNumber>
+ <ns1:price>490.00</ns1:price>
+ <ns1:quantity>50</ns1:quantity>
+ </ns:items>
+</ns:customerOrder>
\ No newline at end of file
Property changes on: projects/jaxbintros/trunk/src/test/resources/order-message.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF