Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3354

XJC Cloneable plugin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.2.8
    • Invalid
    • Tooling

    Description

      Attached is an XJC plugin that adds implements Cloneable and a clone() method to all generated schema classes:

      FooSchema.java
      public Object clone() throws CloneNotSupportedException {
          return super.clone();
      }
      

      To use with CXF just pass in the -xjc-Xcloneable argument and make sure the attached JAR file is on classpath along with the dependency jaxb-xjc-2.1.12.jar.

      Source is included in the JAR. Implemented for Siminn (http://www.siminn.is/ - http://siminn.com/) and contributed with permission.

      Maybe something to include at http://cxf.apache.org/xjc-utils.html ?

      Attachments

        1. cxf-xjc-cloneable.jar
          11 kB
          Bjorn Thor Jonsson

        Activity

          People

            dkulp Daniel Kulp
            bthj Bjorn Thor Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: