private void addExtensions(ExtensionRegistry extReg) throws Exception { JAXBExtensionHelper.addExtensions(extReg, Binding.class, BindingType.class); JAXBExtensionHelper.addExtensions( extReg, BindingOperation.class, org.apache.cxf.binding.corba.wsdl.OperationType.class); JAXBExtensionHelper.addExtensions(extReg, Definition.class, TypeMappingType.class); JAXBExtensionHelper.addExtensions( extReg, Port.class, org.apache.cxf.binding.corba.wsdl.AddressType.class); extReg.mapExtensionTypes(Binding.class, CorbaConstants.NE_CORBA_BINDING, BindingType.class); extReg.mapExtensionTypes( BindingOperation.class, CorbaConstants.NE_CORBA_OPERATION, org.apache.cxf.binding.corba.wsdl.OperationType.class); extReg.mapExtensionTypes( Definition.class, CorbaConstants.NE_CORBA_TYPEMAPPING, TypeMappingType.class); extReg.mapExtensionTypes( Port.class, CorbaConstants.NE_CORBA_ADDRESS, org.apache.cxf.binding.corba.wsdl.AddressType.class); }
public void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions( manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { // ignore, won't support XML } }