Class QNameCreator

java.lang.Object
com.ctc.wstx.compat.QNameCreator

public final class QNameCreator extends Object
Helper class used to solve [WSTX-174]: some older AppServers were shipped with incompatible version of QName class, which is missing the 3 argument constructor. To address this, we'll use bit of ClassLoader hacker to gracefully (?) downgrade to using 2 arg alternatives if necessary.

Note: choice of java.util.logging logging is only based on the fact that it is guaranteed to be present (we have JDK 1.4 baseline requirement) so that we do not add external dependencies. It is not a recommendation for using JUL per se; most users would do well to just use slf4j or log4j directly instead.

Since:
3.2.8
  • Field Details

    • _helper

      private static final QNameCreator.Helper _helper
      Creator object that creates QNames using proper 3-arg constructor. If dynamic class loading fails
  • Constructor Details

    • QNameCreator

      public QNameCreator()
  • Method Details