LibraryToggle FramesPrintFeedback

API Changes

Modules removed

The following modules have been removed from Apache CXF 2.6:

cxf-common-utilities

Merged into the cxf-api module.

cxf-rt-binding-http

This module has been deprecated for some time and its functionality has long been replaceable with the JAX-RS front-end.

Classes removed

The following classes have been removed from Apache CXF 2.6:

org.apache.cxf.jaxrs.ext.codegen.CodeGeneratorProvider

Please use a wadl2java code-generator to generate the JAX-RS code.

org.apache.cxf.jaxrs.features.clustering.FailoverFeature

Please use the common org.apache.cxf.clustering.FailoverFeature class instead.

Classes moved

To resolve some of the split-package issues between JAR file, a few classes have been moved to a different Java package:

  • JAXButils has moved from the org.apache.cxf.jaxb package to the org.apache.cxf.common.jaxb package.

  • Many of the internal Impl classes and Manager classes (for example, BindingFactoryManagerImpl, CXFBusLifeCycleManager, and so on) have moved into the org.apache.cxf.bus.managers package. In any case, you should not reference these implementation classes directly, but instead use the interfaces that they implement.

Classes changed

The following classes have been modified in Apache CXF 2.6:

All API methods that take or return generic classes

All API methods that take or return Java generic classes have been updated to define the generic part properly. For example, methods like Class getServiceClass() have been updated to Class<?> getServiceClass().

AbstractConduitSelector

The selectedConduit field of the AbstractConduitSelector class has been removed, because a ConduitSelector might be used to select multiple conduits in certain scenarios and the selectedConduit field is not always guaranteed to reflect the currently selected conduit.

org.apache.cxf.tools.common.DataTypeAdapter

The DataTypeAdapter class has been deprecated and moved to org.apache.cxf.xjc.runtime.DataTypeAdapter in a new runtime JAR that belongs to the cxf-xjc package. This enables you to use the runtime without pulling in all of the Apache CXF tooling dependencies. The DataTypeAdapter does not have any other Apache CXF dependencies and thus can be used outside Apache CXF as well.

XJC ToString plugin

The XJC ToString plugin has had its runtime dependencies moved out of the org.apache.cxf.tools package and into the cxf-xjc-runtime JAR file. If you use the newer version of the ToString plugin, you will need to add the cxf-xjc-runtime dependency to your application. However, the cxf-xjc-runtime JAR file does not depend on other Apache CXF JAR files or classes and can thus easily be used in other applications, without pulling in as many dependencies.

Comments powered by Disqus