Class WrapperClassNamingConvention.LegacyWrapperClassNamingConvention

java.lang.Object
org.apache.cxf.jaxws.spi.WrapperClassNamingConvention.LegacyWrapperClassNamingConvention
All Implemented Interfaces:
WrapperClassNamingConvention
Enclosing interface:
WrapperClassNamingConvention

public static class WrapperClassNamingConvention.LegacyWrapperClassNamingConvention extends Object implements WrapperClassNamingConvention
An implementation restoring the behavior of CXF before version 4.2.0.

Unlike with WrapperClassNamingConvention.DefaultWrapperClassNamingConvention, this implementation's getWrapperClassPackageName(Class, boolean) takes only package name of the given sei into account. Therefore naming clashes may occur if two SEIs are in the same package and both of them have a method with the same name but possibly different signature.

Examples:

SEI anonymous getWrapperClassPackageName() return value
org.example.Service false org.example.jaxws_asm
org.example.OuterClass$Service false org.example.jaxws_asm
org.example.Service true org.example.jaxws_asm_an
Since:
4.1.1
  • Constructor Details

    • LegacyWrapperClassNamingConvention

      public LegacyWrapperClassNamingConvention()
  • Method Details

    • getWrapperClassPackageName

      public String getWrapperClassPackageName(Class<?> sei, boolean anonymous)
      Description copied from interface: WrapperClassNamingConvention
      Returns a package name unique for the given sei and anonymous parameters suitable for storing generated wrapper classes.
      Specified by:
      getWrapperClassPackageName in interface WrapperClassNamingConvention
      Parameters:
      sei - the service endpoint interface for which the package name should be created
      anonymous - whether the generated wrapper types are anonymous
      Returns:
      a valid Java package name